michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_net_CookieServiceParent_h michael@0: #define mozilla_net_CookieServiceParent_h michael@0: michael@0: #include "mozilla/net/PCookieServiceParent.h" michael@0: #include "SerializedLoadContext.h" michael@0: michael@0: class nsCookieService; michael@0: class nsIIOService; michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: class CookieServiceParent : public PCookieServiceParent michael@0: { michael@0: public: michael@0: CookieServiceParent(); michael@0: virtual ~CookieServiceParent(); michael@0: michael@0: protected: michael@0: MOZ_WARN_UNUSED_RESULT bool michael@0: GetAppInfoFromParams(const IPC::SerializedLoadContext &aLoadContext, michael@0: uint32_t& aAppId, michael@0: bool& aIsInBrowserElement, michael@0: bool& aIsPrivate); michael@0: michael@0: virtual bool RecvGetCookieString(const URIParams& aHost, michael@0: const bool& aIsForeign, michael@0: const bool& aFromHttp, michael@0: const IPC::SerializedLoadContext& michael@0: loadContext, michael@0: nsCString* aResult) MOZ_OVERRIDE; michael@0: michael@0: virtual bool RecvSetCookieString(const URIParams& aHost, michael@0: const bool& aIsForeign, michael@0: const nsCString& aCookieString, michael@0: const nsCString& aServerTime, michael@0: const bool& aFromHttp, michael@0: const IPC::SerializedLoadContext& michael@0: loadContext) MOZ_OVERRIDE; michael@0: michael@0: virtual mozilla::ipc::IProtocol* michael@0: CloneProtocol(Channel* aChannel, michael@0: mozilla::ipc::ProtocolCloneContext* aCtx) MOZ_OVERRIDE; michael@0: michael@0: nsRefPtr mCookieService; michael@0: }; michael@0: michael@0: } michael@0: } michael@0: michael@0: #endif // mozilla_net_CookieServiceParent_h michael@0: