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

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

Issue 1246283003: Split out audio debug recording from RenderProcessHostImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 2 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void SetSuddenTerminationAllowed(bool enabled) override; 132 void SetSuddenTerminationAllowed(bool enabled) override;
133 bool SuddenTerminationAllowed() const override; 133 bool SuddenTerminationAllowed() const override;
134 IPC::ChannelProxy* GetChannel() override; 134 IPC::ChannelProxy* GetChannel() override;
135 void AddFilter(BrowserMessageFilter* filter) override; 135 void AddFilter(BrowserMessageFilter* filter) override;
136 bool FastShutdownForPageCount(size_t count) override; 136 bool FastShutdownForPageCount(size_t count) override;
137 bool FastShutdownStarted() const override; 137 bool FastShutdownStarted() const override;
138 base::TimeDelta GetChildProcessIdleTime() const override; 138 base::TimeDelta GetChildProcessIdleTime() const override;
139 void ResumeRequestsForView(int route_id) override; 139 void ResumeRequestsForView(int route_id) override;
140 void FilterURL(bool empty_allowed, GURL* url) override; 140 void FilterURL(bool empty_allowed, GURL* url) override;
141 #if defined(ENABLE_WEBRTC) 141 #if defined(ENABLE_WEBRTC)
142 void EnableAudioDebugRecordings(const base::FilePath& file) override;
143 void DisableAudioDebugRecordings() override;
144 void SetWebRtcLogMessageCallback( 142 void SetWebRtcLogMessageCallback(
145 base::Callback<void(const std::string&)> callback) override; 143 base::Callback<void(const std::string&)> callback) override;
146 WebRtcStopRtpDumpCallback StartRtpDump( 144 WebRtcStopRtpDumpCallback StartRtpDump(
147 bool incoming, 145 bool incoming,
148 bool outgoing, 146 bool outgoing,
149 const WebRtcRtpPacketCallback& packet_callback) override; 147 const WebRtcRtpPacketCallback& packet_callback) override;
150 #endif 148 #endif
151 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; 149 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
152 void NotifyTimezoneChange(const std::string& timezone) override; 150 void NotifyTimezoneChange(const std::string& timezone) override;
153 ServiceRegistry* GetServiceRegistry() override; 151 ServiceRegistry* GetServiceRegistry() override;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // appropriate. Should be called after any of the involved data members 320 // appropriate. Should be called after any of the involved data members
323 // change. 321 // change.
324 void UpdateProcessPriority(); 322 void UpdateProcessPriority();
325 323
326 // Handle termination of our process. 324 // Handle termination of our process.
327 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); 325 void ProcessDied(bool already_dead, RendererClosedDetails* known_details);
328 326
329 // GpuSwitchingObserver implementation. 327 // GpuSwitchingObserver implementation.
330 void OnGpuSwitched() override; 328 void OnGpuSwitched() override;
331 329
332 #if defined(ENABLE_WEBRTC)
333 void OnRegisterAecDumpConsumer(int id);
334 void OnUnregisterAecDumpConsumer(int id);
335 void RegisterAecDumpConsumerOnUIThread(int id);
336 void UnregisterAecDumpConsumerOnUIThread(int id);
337 void EnableAecDumpForId(const base::FilePath& file, int id);
338 // Sends |file_for_transit| to the render process.
339 void SendAecDumpFileToRenderer(int id,
340 IPC::PlatformFileForTransit file_for_transit);
341 void SendDisableAecDumpToRenderer();
342 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file);
343 #endif
344
345 scoped_ptr<MojoApplicationHost> mojo_application_host_; 330 scoped_ptr<MojoApplicationHost> mojo_application_host_;
346 331
347 // The registered IPC listener objects. When this list is empty, we should 332 // The registered IPC listener objects. When this list is empty, we should
348 // delete ourselves. 333 // delete ourselves.
349 IDMap<IPC::Listener> listeners_; 334 IDMap<IPC::Listener> listeners_;
350 335
351 // The count of currently visible widgets. Since the host can be a container 336 // The count of currently visible widgets. Since the host can be a container
352 // for multiple widgets, it uses this count to determine when it should be 337 // for multiple widgets, it uses this count to determine when it should be
353 // backgrounded. 338 // backgrounded.
354 int32 visible_widgets_; 339 int32 visible_widgets_;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 bool sent_render_process_ready_; 487 bool sent_render_process_ready_;
503 488
504 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 489 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
505 490
506 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 491 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
507 }; 492 };
508 493
509 } // namespace content 494 } // namespace content
510 495
511 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 496 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698