OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
6 #define CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ | 6 #define CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 96 } |
97 | 97 |
98 base::FilePath aec_dump_file_path() { | 98 base::FilePath aec_dump_file_path() { |
99 return aec_dump_file_path_; | 99 return aec_dump_file_path_; |
100 } | 100 } |
101 | 101 |
102 void ResetForTesting(); | 102 void ResetForTesting(); |
103 | 103 |
104 private: | 104 private: |
105 friend struct DefaultSingletonTraits<WebRTCInternals>; | 105 friend struct DefaultSingletonTraits<WebRTCInternals>; |
106 FRIEND_TEST_ALL_PREFIXES(WebRtcBrowserTest, CallWithAecDump); | 106 FRIEND_TEST_ALL_PREFIXES(WebRtcAecDumpBrowserTest, CallWithAecDump); |
107 FRIEND_TEST_ALL_PREFIXES(WebRtcBrowserTest, | 107 FRIEND_TEST_ALL_PREFIXES(WebRtcAecDumpBrowserTest, |
108 CallWithAecDumpEnabledThenDisabled); | 108 CallWithAecDumpEnabledThenDisabled); |
109 FRIEND_TEST_ALL_PREFIXES(WebRtcBrowserTest, TwoCallsWithAecDump); | 109 FRIEND_TEST_ALL_PREFIXES(WebRtcAecDumpBrowserTest, TwoCallsWithAecDump); |
110 FRIEND_TEST_ALL_PREFIXES(WebRTCInternalsTest, | 110 FRIEND_TEST_ALL_PREFIXES(WebRTCInternalsTest, |
111 AecRecordingFileSelectionCanceled); | 111 AecRecordingFileSelectionCanceled); |
112 | 112 |
113 WebRTCInternals(); | 113 WebRTCInternals(); |
114 virtual ~WebRTCInternals(); | 114 virtual ~WebRTCInternals(); |
115 | 115 |
116 void SendUpdate(const std::string& command, base::Value* value); | 116 void SendUpdate(const std::string& command, base::Value* value); |
117 | 117 |
118 // NotificationObserver implementation. | 118 // NotificationObserver implementation. |
119 virtual void Observe(int type, | 119 virtual void Observe(int type, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 // While |peer_connection_data_| is non-empty, hold an instance of | 178 // While |peer_connection_data_| is non-empty, hold an instance of |
179 // PowerSaveBlocker. This prevents the application from being suspended while | 179 // PowerSaveBlocker. This prevents the application from being suspended while |
180 // remoting. | 180 // remoting. |
181 scoped_ptr<PowerSaveBlocker> power_save_blocker_; | 181 scoped_ptr<PowerSaveBlocker> power_save_blocker_; |
182 }; | 182 }; |
183 | 183 |
184 } // namespace content | 184 } // namespace content |
185 | 185 |
186 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ | 186 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
OLD | NEW |