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"
|
|
|
|
|
|
|
|
class nsCookieService;
|
2017-01-12 19:38:48 +03:00
|
|
|
namespace mozilla { class OriginAttributes; }
|
2010-03-26 02:02:28 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
class CookieServiceParent : public PCookieServiceParent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CookieServiceParent();
|
|
|
|
virtual ~CookieServiceParent();
|
|
|
|
|
|
|
|
protected:
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
2014-05-02 22:44:13 +04:00
|
|
|
|
2016-11-15 06:26:00 +03:00
|
|
|
virtual mozilla::ipc::IPCResult RecvGetCookieString(const URIParams& aHost,
|
|
|
|
const bool& aIsForeign,
|
2017-01-12 19:38:48 +03:00
|
|
|
const OriginAttributes& aAttrs,
|
2016-11-15 06:26:00 +03:00
|
|
|
nsCString* aResult) override;
|
|
|
|
|
|
|
|
virtual mozilla::ipc::IPCResult RecvSetCookieString(const URIParams& aHost,
|
|
|
|
const bool& aIsForeign,
|
|
|
|
const nsCString& aCookieString,
|
|
|
|
const nsCString& aServerTime,
|
2017-01-12 19:38:48 +03:00
|
|
|
const OriginAttributes& aAttrs) override;
|
2012-09-18 20:04:04 +04:00
|
|
|
|
2015-10-18 08:24:48 +03:00
|
|
|
RefPtr<nsCookieService> mCookieService;
|
2010-03-26 02:02:28 +03:00
|
|
|
};
|
|
|
|
|
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
|
|
|
|
|