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/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 #if defined(ENABLE_WEBRTC) | 130 #if defined(ENABLE_WEBRTC) |
131 // Enables AEC dump on all render process hosts using |aec_dump_file_path_|. | 131 // Enables AEC dump on all render process hosts using |aec_dump_file_path_|. |
132 void EnableAecDumpOnAllRenderProcessHosts(); | 132 void EnableAecDumpOnAllRenderProcessHosts(); |
133 #endif | 133 #endif |
134 | 134 |
135 // Called whenever an element is added to or removed from | 135 // Called whenever an element is added to or removed from |
136 // |peer_connection_data_| to impose/release a block on suspending the current | 136 // |peer_connection_data_| to impose/release a block on suspending the current |
137 // application for power-saving. | 137 // application for power-saving. |
138 void CreateOrReleasePowerSaveBlocker(); | 138 void CreateOrReleasePowerSaveBlocker(); |
139 | 139 |
140 ObserverList<WebRTCInternalsUIObserver> observers_; | 140 base::ObserverList<WebRTCInternalsUIObserver> observers_; |
141 | 141 |
142 // |peer_connection_data_| is a list containing all the PeerConnection | 142 // |peer_connection_data_| is a list containing all the PeerConnection |
143 // updates. | 143 // updates. |
144 // Each item of the list represents the data for one PeerConnection, which | 144 // Each item of the list represents the data for one PeerConnection, which |
145 // contains these fields: | 145 // contains these fields: |
146 // "rid" -- the renderer id. | 146 // "rid" -- the renderer id. |
147 // "pid" -- OS process id of the renderer that creates the PeerConnection. | 147 // "pid" -- OS process id of the renderer that creates the PeerConnection. |
148 // "lid" -- local Id assigned to the PeerConnection. | 148 // "lid" -- local Id assigned to the PeerConnection. |
149 // "url" -- url of the web page that created the PeerConnection. | 149 // "url" -- url of the web page that created the PeerConnection. |
150 // "servers" and "constraints" -- server configuration and media constraints | 150 // "servers" and "constraints" -- server configuration and media constraints |
(...skipping 25 matching lines...) Expand all Loading... |
176 // remoting. | 176 // remoting. |
177 scoped_ptr<PowerSaveBlocker> power_save_blocker_; | 177 scoped_ptr<PowerSaveBlocker> power_save_blocker_; |
178 | 178 |
179 // Set of render process hosts that |this| is registered as an observer on. | 179 // Set of render process hosts that |this| is registered as an observer on. |
180 base::hash_set<int> render_process_id_set_; | 180 base::hash_set<int> render_process_id_set_; |
181 }; | 181 }; |
182 | 182 |
183 } // namespace content | 183 } // namespace content |
184 | 184 |
185 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ | 185 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
OLD | NEW |