Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_net_CookieServiceParent_h
7 #define mozilla_net_CookieServiceParent_h
9 #include "mozilla/net/PCookieServiceParent.h"
10 #include "SerializedLoadContext.h"
12 class nsCookieService;
13 class nsIIOService;
15 namespace mozilla {
16 namespace net {
18 class CookieServiceParent : public PCookieServiceParent
19 {
20 public:
21 CookieServiceParent();
22 virtual ~CookieServiceParent();
24 protected:
25 MOZ_WARN_UNUSED_RESULT bool
26 GetAppInfoFromParams(const IPC::SerializedLoadContext &aLoadContext,
27 uint32_t& aAppId,
28 bool& aIsInBrowserElement,
29 bool& aIsPrivate);
31 virtual bool RecvGetCookieString(const URIParams& aHost,
32 const bool& aIsForeign,
33 const bool& aFromHttp,
34 const IPC::SerializedLoadContext&
35 loadContext,
36 nsCString* aResult) MOZ_OVERRIDE;
38 virtual bool RecvSetCookieString(const URIParams& aHost,
39 const bool& aIsForeign,
40 const nsCString& aCookieString,
41 const nsCString& aServerTime,
42 const bool& aFromHttp,
43 const IPC::SerializedLoadContext&
44 loadContext) MOZ_OVERRIDE;
46 virtual mozilla::ipc::IProtocol*
47 CloneProtocol(Channel* aChannel,
48 mozilla::ipc::ProtocolCloneContext* aCtx) MOZ_OVERRIDE;
50 nsRefPtr<nsCookieService> mCookieService;
51 };
53 }
54 }
56 #endif // mozilla_net_CookieServiceParent_h