Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
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 file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef _WEBRTC_GLOBAL_INFORMATION_H_
6 #define _WEBRTC_GLOBAL_INFORMATION_H_
8 #include "nsString.h"
10 namespace sipcc {
11 class PeerConnectionImpl;
12 }
14 namespace mozilla {
15 class ErrorResult;
17 namespace dom {
18 class GlobalObject;
19 class WebrtcGlobalStatisticsCallback;
20 class WebrtcGlobalLoggingCallback;
22 class WebrtcGlobalInformation
23 {
24 public:
25 static void GetAllStats(const GlobalObject& aGlobal,
26 WebrtcGlobalStatisticsCallback& aStatsCallback,
27 ErrorResult& aRv);
29 static void GetLogging(const GlobalObject& aGlobal,
30 const nsAString& aPattern,
31 WebrtcGlobalLoggingCallback& aLoggingCallback,
32 ErrorResult& aRv);
34 static void StoreLongTermICEStatistics(sipcc::PeerConnectionImpl& aPc);
36 private:
37 WebrtcGlobalInformation() MOZ_DELETE;
38 WebrtcGlobalInformation(const WebrtcGlobalInformation& aOrig) MOZ_DELETE;
39 WebrtcGlobalInformation& operator=(
40 const WebrtcGlobalInformation& aRhs) MOZ_DELETE;
41 };
43 } // namespace dom
44 } // namespace mozilla
46 #endif // _WEBRTC_GLOBAL_INFORMATION_H_