netwerk/cookie/CookieServiceParent.h

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
permissions
-rw-r--r--

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef mozilla_net_CookieServiceParent_h
michael@0 7 #define mozilla_net_CookieServiceParent_h
michael@0 8
michael@0 9 #include "mozilla/net/PCookieServiceParent.h"
michael@0 10 #include "SerializedLoadContext.h"
michael@0 11
michael@0 12 class nsCookieService;
michael@0 13 class nsIIOService;
michael@0 14
michael@0 15 namespace mozilla {
michael@0 16 namespace net {
michael@0 17
michael@0 18 class CookieServiceParent : public PCookieServiceParent
michael@0 19 {
michael@0 20 public:
michael@0 21 CookieServiceParent();
michael@0 22 virtual ~CookieServiceParent();
michael@0 23
michael@0 24 protected:
michael@0 25 MOZ_WARN_UNUSED_RESULT bool
michael@0 26 GetAppInfoFromParams(const IPC::SerializedLoadContext &aLoadContext,
michael@0 27 uint32_t& aAppId,
michael@0 28 bool& aIsInBrowserElement,
michael@0 29 bool& aIsPrivate);
michael@0 30
michael@0 31 virtual bool RecvGetCookieString(const URIParams& aHost,
michael@0 32 const bool& aIsForeign,
michael@0 33 const bool& aFromHttp,
michael@0 34 const IPC::SerializedLoadContext&
michael@0 35 loadContext,
michael@0 36 nsCString* aResult) MOZ_OVERRIDE;
michael@0 37
michael@0 38 virtual bool RecvSetCookieString(const URIParams& aHost,
michael@0 39 const bool& aIsForeign,
michael@0 40 const nsCString& aCookieString,
michael@0 41 const nsCString& aServerTime,
michael@0 42 const bool& aFromHttp,
michael@0 43 const IPC::SerializedLoadContext&
michael@0 44 loadContext) MOZ_OVERRIDE;
michael@0 45
michael@0 46 virtual mozilla::ipc::IProtocol*
michael@0 47 CloneProtocol(Channel* aChannel,
michael@0 48 mozilla::ipc::ProtocolCloneContext* aCtx) MOZ_OVERRIDE;
michael@0 49
michael@0 50 nsRefPtr<nsCookieService> mCookieService;
michael@0 51 };
michael@0 52
michael@0 53 }
michael@0 54 }
michael@0 55
michael@0 56 #endif // mozilla_net_CookieServiceParent_h
michael@0 57

mercurial