2010-03-25 16:02:28 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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-25 16:02:28 -07:00
|
|
|
|
|
|
|
#ifndef mozilla_net_CookieServiceParent_h
|
|
|
|
#define mozilla_net_CookieServiceParent_h
|
|
|
|
|
|
|
|
#include "mozilla/net/PCookieServiceParent.h"
|
2012-09-18 09:04:04 -07:00
|
|
|
#include "SerializedLoadContext.h"
|
2010-03-25 16:02:28 -07:00
|
|
|
|
|
|
|
class nsCookieService;
|
|
|
|
class nsIIOService;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
class CookieServiceParent : public PCookieServiceParent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CookieServiceParent();
|
|
|
|
virtual ~CookieServiceParent();
|
|
|
|
|
|
|
|
protected:
|
2013-08-20 23:49:41 -07:00
|
|
|
MOZ_WARN_UNUSED_RESULT bool
|
|
|
|
GetAppInfoFromParams(const IPC::SerializedLoadContext &aLoadContext,
|
|
|
|
uint32_t& aAppId,
|
|
|
|
bool& aIsInBrowserElement,
|
|
|
|
bool& aIsPrivate);
|
|
|
|
|
|
|
|
virtual bool RecvGetCookieString(const URIParams& aHost,
|
2010-10-19 09:37:03 -07:00
|
|
|
const bool& aIsForeign,
|
2010-03-25 16:02:28 -07:00
|
|
|
const bool& aFromHttp,
|
2012-09-18 09:04:04 -07:00
|
|
|
const IPC::SerializedLoadContext&
|
|
|
|
loadContext,
|
2013-08-20 23:49:41 -07:00
|
|
|
nsCString* aResult) MOZ_OVERRIDE;
|
2010-03-25 16:02:28 -07:00
|
|
|
|
2012-08-23 12:33:46 -07:00
|
|
|
virtual bool RecvSetCookieString(const URIParams& aHost,
|
2010-10-19 09:37:03 -07:00
|
|
|
const bool& aIsForeign,
|
2010-03-25 16:02:28 -07:00
|
|
|
const nsCString& aCookieString,
|
|
|
|
const nsCString& aServerTime,
|
2012-09-18 09:04:04 -07:00
|
|
|
const bool& aFromHttp,
|
|
|
|
const IPC::SerializedLoadContext&
|
2013-08-20 23:49:41 -07:00
|
|
|
loadContext) MOZ_OVERRIDE;
|
2012-09-18 09:04:04 -07:00
|
|
|
|
2013-06-03 03:14:37 -07:00
|
|
|
virtual mozilla::ipc::IProtocol*
|
|
|
|
CloneProtocol(Channel* aChannel,
|
|
|
|
mozilla::ipc::ProtocolCloneContext* aCtx) MOZ_OVERRIDE;
|
|
|
|
|
2010-03-25 16:02:28 -07:00
|
|
|
nsRefPtr<nsCookieService> mCookieService;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // mozilla_net_CookieServiceParent_h
|
|
|
|
|