dom/interfaces/devicestorage/nsIDOMDeviceStorage.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "domstubs.idl"
michael@0 6 #include "nsIDOMEventTarget.idl"
michael@0 7 interface nsIDOMBlob;
michael@0 8 interface nsIDOMDOMRequest;
michael@0 9 interface nsIDOMDOMCursor;
michael@0 10 interface nsIDOMDeviceStorageChangeEvent;
michael@0 11 interface nsIDOMEventListener;
michael@0 12 interface nsIFile;
michael@0 13
michael@0 14 %{C++
michael@0 15 struct DeviceStorageFileDescriptor;
michael@0 16 %}
michael@0 17 [ptr] native DeviceStorageFdPtr(DeviceStorageFileDescriptor);
michael@0 18
michael@0 19 [scriptable, uuid(8b724547-3c78-4244-969a-f00a1f4ae0c3), builtinclass]
michael@0 20 interface nsIDOMDeviceStorage : nsIDOMEventTarget
michael@0 21 {
michael@0 22 [implicit_jscontext] attribute jsval onchange;
michael@0 23 nsIDOMDOMRequest add(in nsIDOMBlob aBlob);
michael@0 24 nsIDOMDOMRequest addNamed(in nsIDOMBlob aBlob, in DOMString aName);
michael@0 25
michael@0 26 nsIDOMDOMRequest get([Null(Stringify)] in DOMString aName);
michael@0 27 nsIDOMDOMRequest getEditable([Null(Stringify)] in DOMString aName);
michael@0 28 nsIDOMDOMRequest delete([Null(Stringify)] in DOMString aName);
michael@0 29
michael@0 30 nsIDOMDOMRequest freeSpace();
michael@0 31 nsIDOMDOMRequest usedSpace();
michael@0 32 nsIDOMDOMRequest available();
michael@0 33
michael@0 34 // Note that the storageName is just a name (like sdcard), and doesn't
michael@0 35 // include any path information.
michael@0 36 readonly attribute DOMString storageName;
michael@0 37
michael@0 38 // Determines if this storage area is the one which will be used by default
michael@0 39 // for storing new files.
michael@0 40 readonly attribute bool default;
michael@0 41
michael@0 42 // Note: aFileDescriptor is reference counted, which is why we're using
michael@0 43 // a pointer rather than a reference.
michael@0 44 [noscript] nsIDOMDOMRequest createFileDescriptor(in DOMString aName,
michael@0 45 in DeviceStorageFdPtr aFileDescriptor);
michael@0 46 };

mercurial