Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
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