|
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/. */ |
|
4 |
|
5 #ifndef _WEBRTC_GLOBAL_INFORMATION_H_ |
|
6 #define _WEBRTC_GLOBAL_INFORMATION_H_ |
|
7 |
|
8 #include "nsString.h" |
|
9 |
|
10 namespace sipcc { |
|
11 class PeerConnectionImpl; |
|
12 } |
|
13 |
|
14 namespace mozilla { |
|
15 class ErrorResult; |
|
16 |
|
17 namespace dom { |
|
18 class GlobalObject; |
|
19 class WebrtcGlobalStatisticsCallback; |
|
20 class WebrtcGlobalLoggingCallback; |
|
21 |
|
22 class WebrtcGlobalInformation |
|
23 { |
|
24 public: |
|
25 static void GetAllStats(const GlobalObject& aGlobal, |
|
26 WebrtcGlobalStatisticsCallback& aStatsCallback, |
|
27 ErrorResult& aRv); |
|
28 |
|
29 static void GetLogging(const GlobalObject& aGlobal, |
|
30 const nsAString& aPattern, |
|
31 WebrtcGlobalLoggingCallback& aLoggingCallback, |
|
32 ErrorResult& aRv); |
|
33 |
|
34 static void StoreLongTermICEStatistics(sipcc::PeerConnectionImpl& aPc); |
|
35 |
|
36 private: |
|
37 WebrtcGlobalInformation() MOZ_DELETE; |
|
38 WebrtcGlobalInformation(const WebrtcGlobalInformation& aOrig) MOZ_DELETE; |
|
39 WebrtcGlobalInformation& operator=( |
|
40 const WebrtcGlobalInformation& aRhs) MOZ_DELETE; |
|
41 }; |
|
42 |
|
43 } // namespace dom |
|
44 } // namespace mozilla |
|
45 |
|
46 #endif // _WEBRTC_GLOBAL_INFORMATION_H_ |
|
47 |