2010-03-26 02:02:28 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-03-26 02:02:28 +03:00
|
|
|
|
|
|
|
#ifndef mozilla_net_CookieServiceParent_h
|
|
|
|
#define mozilla_net_CookieServiceParent_h
|
|
|
|
|
|
|
|
#include "mozilla/net/PCookieServiceParent.h"
|
2012-09-18 20:04:04 +04:00
|
|
|
#include "SerializedLoadContext.h"
|
2010-03-26 02:02:28 +03:00
|
|
|
|
|
|
|
class nsCookieService;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
class CookieServiceParent : public PCookieServiceParent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CookieServiceParent();
|
|
|
|
virtual ~CookieServiceParent();
|
|
|
|
|
|
|
|
protected:
|
2013-08-21 10:49:41 +04:00
|
|
|
MOZ_WARN_UNUSED_RESULT bool
|
|
|
|
GetAppInfoFromParams(const IPC::SerializedLoadContext &aLoadContext,
|
|
|
|
uint32_t& aAppId,
|
|
|
|
bool& aIsInBrowserElement,
|
|
|
|
bool& aIsPrivate);
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
2014-05-02 22:44:13 +04:00
|
|
|
|
|
|
|
virtual bool RecvGetCookieString(const URIParams& aHost,
|
2010-10-19 20:37:03 +04:00
|
|
|
const bool& aIsForeign,
|
2010-03-26 02:02:28 +03:00
|
|
|
const bool& aFromHttp,
|
2012-09-18 20:04:04 +04:00
|
|
|
const IPC::SerializedLoadContext&
|
|
|
|
loadContext,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsCString* aResult) override;
|
2010-03-26 02:02:28 +03:00
|
|
|
|
2012-08-23 23:33:46 +04:00
|
|
|
virtual bool RecvSetCookieString(const URIParams& aHost,
|
2010-10-19 20:37:03 +04:00
|
|
|
const bool& aIsForeign,
|
2010-03-26 02:02:28 +03:00
|
|
|
const nsCString& aCookieString,
|
|
|
|
const nsCString& aServerTime,
|
2012-09-18 20:04:04 +04:00
|
|
|
const bool& aFromHttp,
|
|
|
|
const IPC::SerializedLoadContext&
|
2015-03-21 19:28:04 +03:00
|
|
|
loadContext) override;
|
2012-09-18 20:04:04 +04:00
|
|
|
|
2013-06-03 14:14:37 +04:00
|
|
|
virtual mozilla::ipc::IProtocol*
|
|
|
|
CloneProtocol(Channel* aChannel,
|
2015-03-21 19:28:04 +03:00
|
|
|
mozilla::ipc::ProtocolCloneContext* aCtx) override;
|
2013-06-03 14:14:37 +04:00
|
|
|
|
2010-03-26 02:02:28 +03:00
|
|
|
nsRefPtr<nsCookieService> mCookieService;
|
|
|
|
};
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|
2010-03-26 02:02:28 +03:00
|
|
|
|
|
|
|
#endif // mozilla_net_CookieServiceParent_h
|
|
|
|
|