netwerk/cookie/CookieServiceParent.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:ca17844789b2
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/. */
5
6 #ifndef mozilla_net_CookieServiceParent_h
7 #define mozilla_net_CookieServiceParent_h
8
9 #include "mozilla/net/PCookieServiceParent.h"
10 #include "SerializedLoadContext.h"
11
12 class nsCookieService;
13 class nsIIOService;
14
15 namespace mozilla {
16 namespace net {
17
18 class CookieServiceParent : public PCookieServiceParent
19 {
20 public:
21 CookieServiceParent();
22 virtual ~CookieServiceParent();
23
24 protected:
25 MOZ_WARN_UNUSED_RESULT bool
26 GetAppInfoFromParams(const IPC::SerializedLoadContext &aLoadContext,
27 uint32_t& aAppId,
28 bool& aIsInBrowserElement,
29 bool& aIsPrivate);
30
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;
37
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;
45
46 virtual mozilla::ipc::IProtocol*
47 CloneProtocol(Channel* aChannel,
48 mozilla::ipc::ProtocolCloneContext* aCtx) MOZ_OVERRIDE;
49
50 nsRefPtr<nsCookieService> mCookieService;
51 };
52
53 }
54 }
55
56 #endif // mozilla_net_CookieServiceParent_h
57

mercurial