Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef WifiProxyService_h
6 #define WifiProxyService_h
8 #include "nsIWifiService.h"
9 #include "nsCOMPtr.h"
10 #include "nsThread.h"
11 #include "mozilla/dom/WifiOptionsBinding.h"
12 #include "nsTArray.h"
14 namespace mozilla {
16 class WifiProxyService MOZ_FINAL : public nsIWifiProxyService
17 {
18 private:
19 struct EventThreadListEntry
20 {
21 nsCOMPtr<nsIThread> mThread;
22 nsCString mInterface;
23 };
25 public:
26 NS_DECL_ISUPPORTS
27 NS_DECL_NSIWIFIPROXYSERVICE
29 static already_AddRefed<WifiProxyService>
30 FactoryCreate();
32 void DispatchWifiEvent(const nsAString& aEvent, const nsACString& aInterface);
33 void DispatchWifiResult(const mozilla::dom::WifiResultOptions& aOptions,
34 const nsACString& aInterface);
36 private:
37 WifiProxyService();
38 ~WifiProxyService();
40 nsTArray<EventThreadListEntry> mEventThreadList;
41 nsCOMPtr<nsIThread> mControlThread;
42 nsCOMPtr<nsIWifiEventListener> mListener;
43 };
45 } // namespace mozilla
47 #endif // WifiProxyService_h