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;
|
|
|
|
class nsIIOService;
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
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,
|
2013-08-21 10:49:41 +04:00
|
|
|
nsCString* aResult) MOZ_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&
|
2013-08-21 10:49:41 +04:00
|
|
|
loadContext) MOZ_OVERRIDE;
|
2012-09-18 20:04:04 +04:00
|
|
|
|
2010-03-26 02:02:28 +03:00
|
|
|
nsRefPtr<nsCookieService> mCookieService;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // mozilla_net_CookieServiceParent_h
|
|
|
|
|