2010-03-26 02:02:28 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
|
|
|
|
|
2012-05-21 15:12:37 +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/. */
|
2010-03-26 02:02:28 +03:00
|
|
|
|
2010-04-27 11:12:38 +04:00
|
|
|
include protocol PNecko;
|
2017-08-03 14:00:41 +03:00
|
|
|
include NeckoChannelParams;
|
2010-04-17 06:56:36 +04:00
|
|
|
|
2017-01-12 19:38:48 +03:00
|
|
|
using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
|
2021-02-09 19:50:21 +03:00
|
|
|
[RefCounted] using class nsIURI from "mozilla/ipc/URIUtils.h";
|
2012-09-18 20:04:04 +04:00
|
|
|
|
2010-03-26 02:02:28 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
2010-09-17 00:21:12 +04:00
|
|
|
/**
|
|
|
|
* PCookieService
|
|
|
|
*
|
|
|
|
* Provides IPDL methods for setting and getting cookies. These are stored on
|
|
|
|
* and managed by the parent; the child process goes through the parent for
|
|
|
|
* all cookie operations. Lower-level programmatic operations (i.e. those
|
2017-10-31 15:02:28 +03:00
|
|
|
* provided by the nsICookieManager interface) are not
|
2010-09-17 00:21:12 +04:00
|
|
|
* currently implemented and requesting these interfaces in the child will fail.
|
|
|
|
*
|
|
|
|
* @see nsICookieService
|
|
|
|
* @see nsICookiePermission
|
|
|
|
*/
|
|
|
|
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(upto inside_cpow) sync protocol PCookieService
|
2010-03-26 02:02:28 +03:00
|
|
|
{
|
|
|
|
manager PNecko;
|
|
|
|
|
|
|
|
parent:
|
2021-02-09 19:50:22 +03:00
|
|
|
[Nested=inside_cpow] async SetCookies(nsCString baseDomain,
|
|
|
|
OriginAttributes attrs,
|
|
|
|
nsIURI host,
|
|
|
|
bool fromHttp,
|
|
|
|
CookieStruct[] cookies);
|
2010-03-26 02:02:28 +03:00
|
|
|
|
2020-04-25 22:10:00 +03:00
|
|
|
async PrepareCookieList(nsIURI host,
|
2017-08-03 14:00:41 +03:00
|
|
|
bool isForeign,
|
2020-02-20 10:27:24 +03:00
|
|
|
bool isThirdPartyTrackingResource,
|
|
|
|
bool isThirdPartySocialTrackingResource,
|
2020-06-03 09:12:06 +03:00
|
|
|
bool firstPartyStorageAccessPermissionGranted,
|
2019-05-25 04:25:41 +03:00
|
|
|
uint32_t rejectedReason,
|
2018-04-08 20:52:05 +03:00
|
|
|
bool isSafeTopLevelNav,
|
2018-04-12 13:52:51 +03:00
|
|
|
bool isSameSiteForeign,
|
2017-08-03 14:00:41 +03:00
|
|
|
OriginAttributes attrs);
|
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async __delete__();
|
2017-08-03 14:00:41 +03:00
|
|
|
|
|
|
|
child:
|
|
|
|
async TrackCookiesLoad(CookieStruct[] cookiesList,
|
|
|
|
OriginAttributes attrs);
|
2017-08-03 13:00:12 +03:00
|
|
|
|
|
|
|
async RemoveCookie(CookieStruct cookie,
|
|
|
|
OriginAttributes attrs);
|
|
|
|
|
|
|
|
async RemoveBatchDeletedCookies(CookieStruct[] cookiesList,
|
|
|
|
OriginAttributes[] attrsList);
|
|
|
|
|
|
|
|
async RemoveAll();
|
|
|
|
|
|
|
|
async AddCookie(CookieStruct cookie,
|
|
|
|
OriginAttributes attrs);
|
|
|
|
|
2010-03-26 02:02:28 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|