Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 void AddFilter(BrowserMessageFilter* filter) override; | 149 void AddFilter(BrowserMessageFilter* filter) override; |
| 150 bool FastShutdownForPageCount(size_t count) override; | 150 bool FastShutdownForPageCount(size_t count) override; |
| 151 bool FastShutdownStarted() const override; | 151 bool FastShutdownStarted() const override; |
| 152 base::TimeDelta GetChildProcessIdleTime() const override; | 152 base::TimeDelta GetChildProcessIdleTime() const override; |
| 153 void FilterURL(bool empty_allowed, GURL* url) override; | 153 void FilterURL(bool empty_allowed, GURL* url) override; |
| 154 #if BUILDFLAG(ENABLE_WEBRTC) | 154 #if BUILDFLAG(ENABLE_WEBRTC) |
| 155 void EnableAudioDebugRecordings(const base::FilePath& file) override; | 155 void EnableAudioDebugRecordings(const base::FilePath& file) override; |
| 156 void DisableAudioDebugRecordings() override; | 156 void DisableAudioDebugRecordings() override; |
| 157 bool StartWebRTCEventLog(const base::FilePath& file_path) override; | 157 bool StartWebRTCEventLog(const base::FilePath& file_path) override; |
| 158 bool StopWebRTCEventLog() override; | 158 bool StopWebRTCEventLog() override; |
| 159 void SetEchoCanceller3(bool enable) override; | |
| 159 void SetWebRtcLogMessageCallback( | 160 void SetWebRtcLogMessageCallback( |
| 160 base::Callback<void(const std::string&)> callback) override; | 161 base::Callback<void(const std::string&)> callback) override; |
| 161 void ClearWebRtcLogMessageCallback() override; | 162 void ClearWebRtcLogMessageCallback() override; |
| 162 WebRtcStopRtpDumpCallback StartRtpDump( | 163 WebRtcStopRtpDumpCallback StartRtpDump( |
| 163 bool incoming, | 164 bool incoming, |
| 164 bool outgoing, | 165 bool outgoing, |
| 165 const WebRtcRtpPacketCallback& packet_callback) override; | 166 const WebRtcRtpPacketCallback& packet_callback) override; |
| 166 #endif | 167 #endif |
| 167 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 168 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
| 168 void BindInterface(const std::string& interface_name, | 169 void BindInterface(const std::string& interface_name, |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 558 | 559 |
| 559 #if BUILDFLAG(ENABLE_WEBRTC) | 560 #if BUILDFLAG(ENABLE_WEBRTC) |
| 560 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; | 561 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; |
| 561 | 562 |
| 562 // Must be accessed on UI thread. | 563 // Must be accessed on UI thread. |
| 563 std::vector<int> aec_dump_consumers_; | 564 std::vector<int> aec_dump_consumers_; |
| 564 | 565 |
| 565 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; | 566 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; |
| 566 | 567 |
| 567 WebRTCEventLogHost webrtc_eventlog_host_; | 568 WebRTCEventLogHost webrtc_eventlog_host_; |
| 569 | |
| 570 // When this variable is not set, the use of AEC3 is governed by the Finch | |
|
Henrik Grunell
2017/04/10 12:33:47
Great comment, thanks!
| |
| 571 // experiment and/or WebRTC's own default. When set to true/false, Finch and | |
| 572 // WebRTC defaults will be overridden, and AEC3/AEC2 (respectively) will be | |
| 573 // used. | |
| 574 base::Optional<bool> override_aec3_; | |
| 568 #endif | 575 #endif |
| 569 | 576 |
| 570 // Forwards messages between WebRTCInternals in the browser process | 577 // Forwards messages between WebRTCInternals in the browser process |
| 571 // and PeerConnectionTracker in the renderer process. | 578 // and PeerConnectionTracker in the renderer process. |
| 572 // It holds a raw pointer to webrtc_eventlog_host_, and therefore should be | 579 // It holds a raw pointer to webrtc_eventlog_host_, and therefore should be |
| 573 // defined below it so it is destructed first. | 580 // defined below it so it is destructed first. |
| 574 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; | 581 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; |
| 575 | 582 |
| 576 // Records the time when the process starts surviving for workers for UMA. | 583 // Records the time when the process starts surviving for workers for UMA. |
| 577 base::TimeTicks survive_for_worker_start_time_; | 584 base::TimeTicks survive_for_worker_start_time_; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 618 instance_weak_factory_; | 625 instance_weak_factory_; |
| 619 | 626 |
| 620 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 627 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 621 | 628 |
| 622 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 629 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 623 }; | 630 }; |
| 624 | 631 |
| 625 } // namespace content | 632 } // namespace content |
| 626 | 633 |
| 627 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |