1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/cookie/CookieServiceParent.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,57 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef mozilla_net_CookieServiceParent_h 1.10 +#define mozilla_net_CookieServiceParent_h 1.11 + 1.12 +#include "mozilla/net/PCookieServiceParent.h" 1.13 +#include "SerializedLoadContext.h" 1.14 + 1.15 +class nsCookieService; 1.16 +class nsIIOService; 1.17 + 1.18 +namespace mozilla { 1.19 +namespace net { 1.20 + 1.21 +class CookieServiceParent : public PCookieServiceParent 1.22 +{ 1.23 +public: 1.24 + CookieServiceParent(); 1.25 + virtual ~CookieServiceParent(); 1.26 + 1.27 +protected: 1.28 + MOZ_WARN_UNUSED_RESULT bool 1.29 + GetAppInfoFromParams(const IPC::SerializedLoadContext &aLoadContext, 1.30 + uint32_t& aAppId, 1.31 + bool& aIsInBrowserElement, 1.32 + bool& aIsPrivate); 1.33 + 1.34 + virtual bool RecvGetCookieString(const URIParams& aHost, 1.35 + const bool& aIsForeign, 1.36 + const bool& aFromHttp, 1.37 + const IPC::SerializedLoadContext& 1.38 + loadContext, 1.39 + nsCString* aResult) MOZ_OVERRIDE; 1.40 + 1.41 + virtual bool RecvSetCookieString(const URIParams& aHost, 1.42 + const bool& aIsForeign, 1.43 + const nsCString& aCookieString, 1.44 + const nsCString& aServerTime, 1.45 + const bool& aFromHttp, 1.46 + const IPC::SerializedLoadContext& 1.47 + loadContext) MOZ_OVERRIDE; 1.48 + 1.49 + virtual mozilla::ipc::IProtocol* 1.50 + CloneProtocol(Channel* aChannel, 1.51 + mozilla::ipc::ProtocolCloneContext* aCtx) MOZ_OVERRIDE; 1.52 + 1.53 + nsRefPtr<nsCookieService> mCookieService; 1.54 +}; 1.55 + 1.56 +} 1.57 +} 1.58 + 1.59 +#endif // mozilla_net_CookieServiceParent_h 1.60 +