Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2801853005: Create a private API for controlling WebRTC's AEC3 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 void OnRegisterAecDumpConsumer(int id); 389 void OnRegisterAecDumpConsumer(int id);
389 void OnUnregisterAecDumpConsumer(int id); 390 void OnUnregisterAecDumpConsumer(int id);
390 void RegisterAecDumpConsumerOnUIThread(int id); 391 void RegisterAecDumpConsumerOnUIThread(int id);
391 void UnregisterAecDumpConsumerOnUIThread(int id); 392 void UnregisterAecDumpConsumerOnUIThread(int id);
392 void EnableAecDumpForId(const base::FilePath& file, int id); 393 void EnableAecDumpForId(const base::FilePath& file, int id);
393 // Sends |file_for_transit| to the render process. 394 // Sends |file_for_transit| to the render process.
394 void SendAecDumpFileToRenderer(int id, 395 void SendAecDumpFileToRenderer(int id,
395 IPC::PlatformFileForTransit file_for_transit); 396 IPC::PlatformFileForTransit file_for_transit);
396 void SendDisableAecDumpToRenderer(); 397 void SendDisableAecDumpToRenderer();
397 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file); 398 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file);
399 void SetEchoCanceller3ForId(bool enable, int id);
398 #endif 400 #endif
399 401
400 static void OnMojoError(int render_process_id, const std::string& error); 402 static void OnMojoError(int render_process_id, const std::string& error);
401 403
402 template <typename InterfaceType> 404 template <typename InterfaceType>
403 using AddInterfaceCallback = 405 using AddInterfaceCallback =
404 base::Callback<void(mojo::InterfaceRequest<InterfaceType>)>; 406 base::Callback<void(mojo::InterfaceRequest<InterfaceType>)>;
405 407
406 template <typename CallbackType> 408 template <typename CallbackType>
407 struct InterfaceGetter; 409 struct InterfaceGetter;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 instance_weak_factory_; 620 instance_weak_factory_;
619 621
620 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 622 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
621 623
622 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 624 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
623 }; 625 };
624 626
625 } // namespace content 627 } // namespace content
626 628
627 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 629 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698