Bug 1730324 - [web-share] implement validate share and non-fully active check r=saschanaz
[gecko.git] / netwerk / cookie / CookiePrivateStorage.h
blob5aaa60c24162afb2884d483360d5dbd4e3109c52
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_CookiePrivateStorage_h
7 #define mozilla_net_CookiePrivateStorage_h
9 #include "CookieStorage.h"
11 namespace mozilla {
12 namespace net {
14 class CookiePrivateStorage final : public CookieStorage {
15 public:
16 static already_AddRefed<CookiePrivateStorage> Create();
18 void StaleCookies(const nsTArray<Cookie*>& aCookieList,
19 int64_t aCurrentTimeInUsec) override;
21 void Close() override{};
23 protected:
24 const char* NotificationTopic() const override {
25 return "private-cookie-changed";
28 void NotifyChangedInternal(nsISupports* aSubject, const char16_t* aData,
29 bool aOldCookieIsSession) override {}
31 void RemoveAllInternal() override {}
33 void RemoveCookieFromDB(const CookieListIter& aIter) override {}
35 already_AddRefed<nsIArray> PurgeCookies(int64_t aCurrentTimeInUsec,
36 uint16_t aMaxNumberOfCookies,
37 int64_t aCookiePurgeAge) override;
39 void StoreCookie(const nsACString& aBaseDomain,
40 const OriginAttributes& aOriginAttributes,
41 Cookie* aCookie) override {}
44 } // namespace net
45 } // namespace mozilla
47 #endif // mozilla_net_CookiePrivateStorage_h