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 {
|
2012-12-29 01:02:16 -08:00
|
|
|
namespace dom {
|
|
|
|
class PBrowserParent;
|
|
|
|
}
|
2010-03-25 16:02:28 -07:00
|
|
|
namespace net {
|
|
|
|
|
|
|
|
class CookieServiceParent : public PCookieServiceParent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CookieServiceParent();
|
|
|
|
virtual ~CookieServiceParent();
|
|
|
|
|
|
|
|
protected:
|
2012-08-23 12:33:46 -07:00
|
|
|
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,
|
2012-12-29 01:02:16 -08:00
|
|
|
mozilla::dom::PBrowserParent* aBrowser,
|
2010-03-25 16:02:28 -07:00
|
|
|
nsCString* aResult);
|
|
|
|
|
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&
|
2012-12-29 01:02:16 -08:00
|
|
|
loadContext,
|
|
|
|
mozilla::dom::PBrowserParent* aBrowser);
|
2012-09-18 09:04:04 -07:00
|
|
|
|
2010-03-25 16:02:28 -07:00
|
|
|
nsRefPtr<nsCookieService> mCookieService;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // mozilla_net_CookieServiceParent_h
|
|
|
|
|