dom/devicestorage/DeviceStorageRequestChild.h

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     4  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef mozilla_dom_devicestorage_DeviceStorageRequestChild_h
     7 #define mozilla_dom_devicestorage_DeviceStorageRequestChild_h
     9 #include "mozilla/dom/devicestorage/PDeviceStorageRequestChild.h"
    11 class DeviceStorageFile;
    12 struct DeviceStorageFileDescriptor;
    14 namespace mozilla {
    15 namespace dom {
    17 class DOMRequest;
    19 namespace devicestorage {
    21 class DeviceStorageRequestChildCallback
    22 {
    23   public:
    24     virtual void RequestComplete() = 0;
    25 };
    27 class DeviceStorageRequestChild : public PDeviceStorageRequestChild
    28 {
    29 public:
    30   DeviceStorageRequestChild();
    31   DeviceStorageRequestChild(DOMRequest* aRequest, DeviceStorageFile* aFile);
    32   DeviceStorageRequestChild(DOMRequest* aRequest, DeviceStorageFile* aFile,
    33                             DeviceStorageFileDescriptor* aFileDescrptor);
    34   ~DeviceStorageRequestChild();
    36   void SetCallback(class DeviceStorageRequestChildCallback *aCallback);
    38   virtual bool Recv__delete__(const DeviceStorageResponseValue& value);
    40 private:
    41   nsRefPtr<DOMRequest> mRequest;
    42   nsRefPtr<DeviceStorageFile> mDSFile;
    43   nsRefPtr<DeviceStorageFileDescriptor> mDSFileDescriptor;
    45   DeviceStorageRequestChildCallback* mCallback;
    46 };
    48 } // namespace devicestorage
    49 } // namespace dom
    50 } // namespace mozilla
    52 #endif

mercurial