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

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

Issue 1272223003: Implement writing mic audio input data to file for debugging purposes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 3 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 <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 39
40 namespace gpu { 40 namespace gpu {
41 class ValueStateMap; 41 class ValueStateMap;
42 } 42 }
43 43
44 namespace IPC { 44 namespace IPC {
45 class ChannelMojoHost; 45 class ChannelMojoHost;
46 } 46 }
47 47
48 namespace content { 48 namespace content {
49 class AudioInputRendererHost;
49 class AudioRendererHost; 50 class AudioRendererHost;
50 class BluetoothDispatcherHost; 51 class BluetoothDispatcherHost;
51 class BrowserCdmManager; 52 class BrowserCdmManager;
52 class BrowserDemuxerAndroid; 53 class BrowserDemuxerAndroid;
53 class GpuMessageFilter; 54 class GpuMessageFilter;
54 class InProcessChildThreadParams; 55 class InProcessChildThreadParams;
55 class MessagePortMessageFilter; 56 class MessagePortMessageFilter;
56 class MojoApplicationHost; 57 class MojoApplicationHost;
57 class NotificationMessageFilter; 58 class NotificationMessageFilter;
58 #if defined(ENABLE_WEBRTC) 59 #if defined(ENABLE_WEBRTC)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void SetSuddenTerminationAllowed(bool enabled) override; 130 void SetSuddenTerminationAllowed(bool enabled) override;
130 bool SuddenTerminationAllowed() const override; 131 bool SuddenTerminationAllowed() const override;
131 IPC::ChannelProxy* GetChannel() override; 132 IPC::ChannelProxy* GetChannel() override;
132 void AddFilter(BrowserMessageFilter* filter) override; 133 void AddFilter(BrowserMessageFilter* filter) override;
133 bool FastShutdownForPageCount(size_t count) override; 134 bool FastShutdownForPageCount(size_t count) override;
134 bool FastShutdownStarted() const override; 135 bool FastShutdownStarted() const override;
135 base::TimeDelta GetChildProcessIdleTime() const override; 136 base::TimeDelta GetChildProcessIdleTime() const override;
136 void ResumeRequestsForView(int route_id) override; 137 void ResumeRequestsForView(int route_id) override;
137 void FilterURL(bool empty_allowed, GURL* url) override; 138 void FilterURL(bool empty_allowed, GURL* url) override;
138 #if defined(ENABLE_WEBRTC) 139 #if defined(ENABLE_WEBRTC)
139 void EnableAecDump(const base::FilePath& file) override; 140 void EnableAudioDebugRecordings(const base::FilePath& file) override;
140 void DisableAecDump() override; 141 void DisableAudioDebugRecordings() override;
141 void SetWebRtcLogMessageCallback( 142 void SetWebRtcLogMessageCallback(
142 base::Callback<void(const std::string&)> callback) override; 143 base::Callback<void(const std::string&)> callback) override;
143 WebRtcStopRtpDumpCallback StartRtpDump( 144 WebRtcStopRtpDumpCallback StartRtpDump(
144 bool incoming, 145 bool incoming,
145 bool outgoing, 146 bool outgoing,
146 const WebRtcRtpPacketCallback& packet_callback) override; 147 const WebRtcRtpPacketCallback& packet_callback) override;
147 #endif 148 #endif
148 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; 149 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
149 void NotifyTimezoneChange(const std::string& timezone) override; 150 void NotifyTimezoneChange(const std::string& timezone) override;
150 ServiceRegistry* GetServiceRegistry() override; 151 ServiceRegistry* GetServiceRegistry() override;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 #if defined(ENABLE_WEBRTC) 336 #if defined(ENABLE_WEBRTC)
336 void OnRegisterAecDumpConsumer(int id); 337 void OnRegisterAecDumpConsumer(int id);
337 void OnUnregisterAecDumpConsumer(int id); 338 void OnUnregisterAecDumpConsumer(int id);
338 void RegisterAecDumpConsumerOnUIThread(int id); 339 void RegisterAecDumpConsumerOnUIThread(int id);
339 void UnregisterAecDumpConsumerOnUIThread(int id); 340 void UnregisterAecDumpConsumerOnUIThread(int id);
340 void EnableAecDumpForId(const base::FilePath& file, int id); 341 void EnableAecDumpForId(const base::FilePath& file, int id);
341 // Sends |file_for_transit| to the render process. 342 // Sends |file_for_transit| to the render process.
342 void SendAecDumpFileToRenderer(int id, 343 void SendAecDumpFileToRenderer(int id,
343 IPC::PlatformFileForTransit file_for_transit); 344 IPC::PlatformFileForTransit file_for_transit);
344 void SendDisableAecDumpToRenderer(); 345 void SendDisableAecDumpToRenderer();
346 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file);
345 #endif 347 #endif
346 348
347 scoped_ptr<MojoApplicationHost> mojo_application_host_; 349 scoped_ptr<MojoApplicationHost> mojo_application_host_;
348 350
349 // The registered IPC listener objects. When this list is empty, we should 351 // The registered IPC listener objects. When this list is empty, we should
350 // delete ourselves. 352 // delete ourselves.
351 IDMap<IPC::Listener> listeners_; 353 IDMap<IPC::Listener> listeners_;
352 354
353 // The count of currently visible widgets. Since the host can be a container 355 // The count of currently visible widgets. Since the host can be a container
354 // for multiple widgets, it uses this count to determine when it should be 356 // for multiple widgets, it uses this count to determine when it should be
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 443
442 // Indicates whether RenderProcessHostImpl is currently iterating and calling 444 // Indicates whether RenderProcessHostImpl is currently iterating and calling
443 // through RenderProcessHostObserver::RenderProcessExited. 445 // through RenderProcessHostObserver::RenderProcessExited.
444 bool within_process_died_observer_; 446 bool within_process_died_observer_;
445 447
446 // Forwards power state messages to the renderer process. 448 // Forwards power state messages to the renderer process.
447 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; 449 PowerMonitorMessageBroadcaster power_monitor_broadcaster_;
448 450
449 scoped_refptr<AudioRendererHost> audio_renderer_host_; 451 scoped_refptr<AudioRendererHost> audio_renderer_host_;
450 452
453 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_;
454
451 scoped_refptr<BluetoothDispatcherHost> bluetooth_dispatcher_host_; 455 scoped_refptr<BluetoothDispatcherHost> bluetooth_dispatcher_host_;
452 456
453 #if defined(OS_ANDROID) 457 #if defined(OS_ANDROID)
454 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; 458 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_;
455 #endif 459 #endif
456 460
457 #if defined(ENABLE_WEBRTC) 461 #if defined(ENABLE_WEBRTC)
458 base::Callback<void(const std::string&)> webrtc_log_message_callback_; 462 base::Callback<void(const std::string&)> webrtc_log_message_callback_;
459 463
460 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; 464 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 #endif 502 #endif
499 503
500 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 504 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
501 505
502 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 506 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
503 }; 507 };
504 508
505 } // namespace content 509 } // namespace content
506 510
507 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 511 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698