2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-06-20 03:14:39 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_devicestorage_DeviceStorageRequestChild_h
|
|
|
|
#define mozilla_dom_devicestorage_DeviceStorageRequestChild_h
|
|
|
|
|
|
|
|
#include "mozilla/dom/devicestorage/PDeviceStorageRequestChild.h"
|
2012-10-05 00:40:45 +04:00
|
|
|
|
|
|
|
class DeviceStorageFile;
|
2015-08-26 03:13:34 +03:00
|
|
|
class DeviceStorageRequest;
|
2014-04-14 23:04:24 +04:00
|
|
|
struct DeviceStorageFileDescriptor;
|
2012-10-05 00:40:45 +04:00
|
|
|
|
2012-06-20 03:14:39 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2014-01-17 05:01:27 +04:00
|
|
|
|
2012-06-20 03:14:39 +04:00
|
|
|
namespace devicestorage {
|
|
|
|
|
2012-10-05 00:40:45 +04:00
|
|
|
class DeviceStorageRequestChildCallback
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void RequestComplete() = 0;
|
|
|
|
};
|
|
|
|
|
2012-06-20 03:14:39 +04:00
|
|
|
class DeviceStorageRequestChild : public PDeviceStorageRequestChild
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DeviceStorageRequestChild();
|
2015-08-26 03:13:34 +03:00
|
|
|
explicit DeviceStorageRequestChild(DeviceStorageRequest* aRequest);
|
2012-06-20 03:14:39 +04:00
|
|
|
~DeviceStorageRequestChild();
|
|
|
|
|
|
|
|
virtual bool Recv__delete__(const DeviceStorageResponseValue& value);
|
|
|
|
|
|
|
|
private:
|
2015-10-18 08:24:48 +03:00
|
|
|
RefPtr<DeviceStorageRequest> mRequest;
|
2012-06-20 03:14:39 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace devicestorage
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif
|