Bug 785860 - fix sts preload list tests to skip private mode tests if private browsin...
[gecko.git] / netwerk / cookie / CookieServiceParent.h
blobc4246476553751ac4307889bb17f81af90c662b0
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_net_CookieServiceParent_h
7 #define mozilla_net_CookieServiceParent_h
9 #include "mozilla/net/PCookieServiceParent.h"
11 class nsCookieService;
12 class nsIIOService;
14 namespace mozilla {
15 namespace net {
17 class CookieServiceParent : public PCookieServiceParent
19 public:
20 CookieServiceParent();
21 virtual ~CookieServiceParent();
23 protected:
24 virtual bool RecvGetCookieString(const URIParams& aHost,
25 const bool& aIsForeign,
26 const bool& aFromHttp,
27 nsCString* aResult);
29 virtual bool RecvSetCookieString(const URIParams& aHost,
30 const bool& aIsForeign,
31 const nsCString& aCookieString,
32 const nsCString& aServerTime,
33 const bool& aFromHttp);
35 nsRefPtr<nsCookieService> mCookieService;
41 #endif // mozilla_net_CookieServiceParent_h