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_WEBRTC_WEBRTC_INTERNALS_H_ | 5 #ifndef CONTENT_BROWSER_WEBRTC_WEBRTC_INTERNALS_H_ |
6 #define CONTENT_BROWSER_WEBRTC_WEBRTC_INTERNALS_H_ | 6 #define CONTENT_BROWSER_WEBRTC_WEBRTC_INTERNALS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/process/process.h" | 17 #include "base/process/process.h" |
18 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
21 #include "content/public/browser/render_process_host_observer.h" | 21 #include "content/public/browser/render_process_host_observer.h" |
| 22 #include "media/media_features.h" |
22 #include "ui/shell_dialogs/select_file_dialog.h" | 23 #include "ui/shell_dialogs/select_file_dialog.h" |
23 | 24 |
24 namespace device { | 25 namespace device { |
25 class PowerSaveBlocker; | 26 class PowerSaveBlocker; |
26 } // namespace device | 27 } // namespace device |
27 | 28 |
28 namespace content { | 29 namespace content { |
29 | 30 |
30 class WebContents; | 31 class WebContents; |
31 class WebRTCInternalsUIObserver; | 32 class WebRTCInternalsUIObserver; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 141 |
141 // ui::SelectFileDialog::Listener implementation. | 142 // ui::SelectFileDialog::Listener implementation. |
142 void FileSelected(const base::FilePath& path, | 143 void FileSelected(const base::FilePath& path, |
143 int index, | 144 int index, |
144 void* unused_params) override; | 145 void* unused_params) override; |
145 void FileSelectionCanceled(void* params) override; | 146 void FileSelectionCanceled(void* params) override; |
146 | 147 |
147 // Called when a renderer exits (including crashes). | 148 // Called when a renderer exits (including crashes). |
148 void OnRendererExit(int render_process_id); | 149 void OnRendererExit(int render_process_id); |
149 | 150 |
150 #if defined(ENABLE_WEBRTC) | 151 #if BUILDFLAG(ENABLE_WEBRTC) |
151 // Enables diagnostic audio recordings on all render process hosts using | 152 // Enables diagnostic audio recordings on all render process hosts using |
152 // |audio_debug_recordings_file_path_|. | 153 // |audio_debug_recordings_file_path_|. |
153 void EnableAudioDebugRecordingsOnAllRenderProcessHosts(); | 154 void EnableAudioDebugRecordingsOnAllRenderProcessHosts(); |
154 | 155 |
155 // Enables event log recordings on all render process hosts using | 156 // Enables event log recordings on all render process hosts using |
156 // |event_log_recordings_file_path_|. | 157 // |event_log_recordings_file_path_|. |
157 void EnableEventLogRecordingsOnAllRenderProcessHosts(); | 158 void EnableEventLogRecordingsOnAllRenderProcessHosts(); |
158 #endif | 159 #endif |
159 | 160 |
160 // Updates the number of open PeerConnections. Called when a PeerConnection | 161 // Updates the number of open PeerConnections. Called when a PeerConnection |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 std::queue<PendingUpdate> pending_updates_; | 250 std::queue<PendingUpdate> pending_updates_; |
250 const int aggregate_updates_ms_; | 251 const int aggregate_updates_ms_; |
251 | 252 |
252 // Weak factory for this object that we use for bulking up updates. | 253 // Weak factory for this object that we use for bulking up updates. |
253 base::WeakPtrFactory<WebRTCInternals> weak_factory_; | 254 base::WeakPtrFactory<WebRTCInternals> weak_factory_; |
254 }; | 255 }; |
255 | 256 |
256 } // namespace content | 257 } // namespace content |
257 | 258 |
258 #endif // CONTENT_BROWSER_WEBRTC_WEBRTC_INTERNALS_H_ | 259 #endif // CONTENT_BROWSER_WEBRTC_WEBRTC_INTERNALS_H_ |
OLD | NEW |