toolkit/components/places/nsPIPlacesDatabase.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 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 2 * vim: sw=2 ts=2 sts=2
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #include "nsISupports.idl"
michael@0 8
michael@0 9 interface mozIStorageConnection;
michael@0 10 interface nsINavHistoryQuery;
michael@0 11 interface nsINavHistoryQueryOptions;
michael@0 12 interface mozIStorageStatementCallback;
michael@0 13 interface mozIStoragePendingStatement;
michael@0 14
michael@0 15 /**
michael@0 16 * This is a private interface used by Places components to get access to the
michael@0 17 * database. If outside consumers wish to use this, they should only read from
michael@0 18 * the database so they do not break any internal invariants.
michael@0 19 */
michael@0 20 [scriptable, uuid(6eb7ed3d-13ca-450b-b370-15c75e2f3dab)]
michael@0 21 interface nsPIPlacesDatabase : nsISupports
michael@0 22 {
michael@0 23 /**
michael@0 24 * The database connection used by Places.
michael@0 25 */
michael@0 26 readonly attribute mozIStorageConnection DBConnection;
michael@0 27
michael@0 28 /**
michael@0 29 * Asynchronously executes the statement created from queries.
michael@0 30 *
michael@0 31 * @see nsINavHistoryService::executeQueries
michael@0 32 * @note THIS IS A TEMPORARY API. Don't rely on it, since it will be replaced
michael@0 33 * in future versions by a real async querying API.
michael@0 34 * @note Results obtained from this method differ from results obtained from
michael@0 35 * executeQueries, because there is additional filtering and sorting
michael@0 36 * done by the latter. Thus you should use executeQueries, unless you
michael@0 37 * are absolutely sure that the returned results are fine for
michael@0 38 * your use-case.
michael@0 39 */
michael@0 40 mozIStoragePendingStatement asyncExecuteLegacyQueries(
michael@0 41 [array, size_is(aQueryCount)] in nsINavHistoryQuery aQueries,
michael@0 42 in unsigned long aQueryCount,
michael@0 43 in nsINavHistoryQueryOptions aOptions,
michael@0 44 in mozIStorageStatementCallback aCallback);
michael@0 45 };

mercurial