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

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

Issue 1855193002: Move the call to enable the WebRTC event log from PeerConnectionFactory to PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduced WebRTCCallbackInterface. Created 4 years, 7 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 bool SuddenTerminationAllowed() const override; 136 bool SuddenTerminationAllowed() const override;
137 IPC::ChannelProxy* GetChannel() override; 137 IPC::ChannelProxy* GetChannel() override;
138 void AddFilter(BrowserMessageFilter* filter) override; 138 void AddFilter(BrowserMessageFilter* filter) override;
139 bool FastShutdownForPageCount(size_t count) override; 139 bool FastShutdownForPageCount(size_t count) override;
140 bool FastShutdownStarted() const override; 140 bool FastShutdownStarted() const override;
141 base::TimeDelta GetChildProcessIdleTime() const override; 141 base::TimeDelta GetChildProcessIdleTime() const override;
142 void FilterURL(bool empty_allowed, GURL* url) override; 142 void FilterURL(bool empty_allowed, GURL* url) override;
143 #if defined(ENABLE_WEBRTC) 143 #if defined(ENABLE_WEBRTC)
144 void EnableAudioDebugRecordings(const base::FilePath& file) override; 144 void EnableAudioDebugRecordings(const base::FilePath& file) override;
145 void DisableAudioDebugRecordings() override; 145 void DisableAudioDebugRecordings() override;
146 void EnableEventLogRecordings(const base::FilePath& file) override;
147 void DisableEventLogRecordings() override;
148 void SetWebRtcLogMessageCallback( 146 void SetWebRtcLogMessageCallback(
149 base::Callback<void(const std::string&)> callback) override; 147 base::Callback<void(const std::string&)> callback) override;
150 void ClearWebRtcLogMessageCallback() override; 148 void ClearWebRtcLogMessageCallback() override;
151 WebRtcStopRtpDumpCallback StartRtpDump( 149 WebRtcStopRtpDumpCallback StartRtpDump(
152 bool incoming, 150 bool incoming,
153 bool outgoing, 151 bool outgoing,
154 const WebRtcRtpPacketCallback& packet_callback) override; 152 const WebRtcRtpPacketCallback& packet_callback) override;
155 #endif 153 #endif
156 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; 154 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
157 void NotifyTimezoneChange(const std::string& timezone) override; 155 void NotifyTimezoneChange(const std::string& timezone) override;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 void CreateSharedRendererHistogramAllocator(); 332 void CreateSharedRendererHistogramAllocator();
335 333
336 // Handle termination of our process. 334 // Handle termination of our process.
337 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); 335 void ProcessDied(bool already_dead, RendererClosedDetails* known_details);
338 336
339 // GpuSwitchingObserver implementation. 337 // GpuSwitchingObserver implementation.
340 void OnGpuSwitched() override; 338 void OnGpuSwitched() override;
341 339
342 #if defined(ENABLE_WEBRTC) 340 #if defined(ENABLE_WEBRTC)
343 void OnRegisterAecDumpConsumer(int id); 341 void OnRegisterAecDumpConsumer(int id);
344 void OnRegisterEventLogConsumer(int id);
345 void OnUnregisterAecDumpConsumer(int id); 342 void OnUnregisterAecDumpConsumer(int id);
346 void OnUnregisterEventLogConsumer(int id);
347 void RegisterAecDumpConsumerOnUIThread(int id); 343 void RegisterAecDumpConsumerOnUIThread(int id);
348 void RegisterEventLogConsumerOnUIThread(int id);
349 void UnregisterAecDumpConsumerOnUIThread(int id); 344 void UnregisterAecDumpConsumerOnUIThread(int id);
350 void UnregisterEventLogConsumerOnUIThread(int id);
351 void EnableAecDumpForId(const base::FilePath& file, int id); 345 void EnableAecDumpForId(const base::FilePath& file, int id);
352 void EnableEventLogForId(const base::FilePath& file, int id);
353 // Sends |file_for_transit| to the render process. 346 // Sends |file_for_transit| to the render process.
354 void SendAecDumpFileToRenderer(int id, 347 void SendAecDumpFileToRenderer(int id,
355 IPC::PlatformFileForTransit file_for_transit); 348 IPC::PlatformFileForTransit file_for_transit);
356 void SendEventLogFileToRenderer(int id,
357 IPC::PlatformFileForTransit file_for_transit);
358 void SendDisableAecDumpToRenderer(); 349 void SendDisableAecDumpToRenderer();
359 void SendDisableEventLogToRenderer();
360 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file); 350 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file);
361 base::FilePath GetEventLogFilePathWithExtensions(const base::FilePath& file);
362 #endif 351 #endif
363 352
364 std::unique_ptr<MojoChildConnection> mojo_child_connection_; 353 std::unique_ptr<MojoChildConnection> mojo_child_connection_;
365 std::unique_ptr<MojoApplicationHost> mojo_application_host_; 354 std::unique_ptr<MojoApplicationHost> mojo_application_host_;
366 355
367 // The registered IPC listener objects. When this list is empty, we should 356 // The registered IPC listener objects. When this list is empty, we should
368 // delete ourselves. 357 // delete ourselves.
369 IDMap<IPC::Listener> listeners_; 358 IDMap<IPC::Listener> listeners_;
370 359
371 // The count of currently visible widgets. Since the host can be a container 360 // The count of currently visible widgets. Since the host can be a container
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 502 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
514 503
515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 504 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
516 505
517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 506 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
518 }; 507 };
519 508
520 } // namespace content 509 } // namespace content
521 510
522 #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