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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 bool SuddenTerminationAllowed() const override; | 139 bool SuddenTerminationAllowed() const override; |
140 IPC::ChannelProxy* GetChannel() override; | 140 IPC::ChannelProxy* GetChannel() override; |
141 void AddFilter(BrowserMessageFilter* filter) override; | 141 void AddFilter(BrowserMessageFilter* filter) override; |
142 bool FastShutdownForPageCount(size_t count) override; | 142 bool FastShutdownForPageCount(size_t count) override; |
143 bool FastShutdownStarted() const override; | 143 bool FastShutdownStarted() const override; |
144 base::TimeDelta GetChildProcessIdleTime() const override; | 144 base::TimeDelta GetChildProcessIdleTime() const override; |
145 void FilterURL(bool empty_allowed, GURL* url) override; | 145 void FilterURL(bool empty_allowed, GURL* url) override; |
146 #if defined(ENABLE_WEBRTC) | 146 #if defined(ENABLE_WEBRTC) |
147 void EnableAudioDebugRecordings(const base::FilePath& file) override; | 147 void EnableAudioDebugRecordings(const base::FilePath& file) override; |
148 void DisableAudioDebugRecordings() override; | 148 void DisableAudioDebugRecordings() override; |
149 void EnableEventLogRecordings(const base::FilePath& file) override; | |
150 void DisableEventLogRecordings() override; | |
151 void SetWebRtcLogMessageCallback( | 149 void SetWebRtcLogMessageCallback( |
152 base::Callback<void(const std::string&)> callback) override; | 150 base::Callback<void(const std::string&)> callback) override; |
153 WebRtcStopRtpDumpCallback StartRtpDump( | 151 WebRtcStopRtpDumpCallback StartRtpDump( |
154 bool incoming, | 152 bool incoming, |
155 bool outgoing, | 153 bool outgoing, |
156 const WebRtcRtpPacketCallback& packet_callback) override; | 154 const WebRtcRtpPacketCallback& packet_callback) override; |
157 #endif | 155 #endif |
158 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 156 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
159 void NotifyTimezoneChange(const std::string& timezone) override; | 157 void NotifyTimezoneChange(const std::string& timezone) override; |
160 ServiceRegistry* GetServiceRegistry() override; | 158 ServiceRegistry* GetServiceRegistry() override; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 void UpdateProcessPriority(); | 330 void UpdateProcessPriority(); |
333 | 331 |
334 // Handle termination of our process. | 332 // Handle termination of our process. |
335 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); | 333 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); |
336 | 334 |
337 // GpuSwitchingObserver implementation. | 335 // GpuSwitchingObserver implementation. |
338 void OnGpuSwitched() override; | 336 void OnGpuSwitched() override; |
339 | 337 |
340 #if defined(ENABLE_WEBRTC) | 338 #if defined(ENABLE_WEBRTC) |
341 void OnRegisterAecDumpConsumer(int id); | 339 void OnRegisterAecDumpConsumer(int id); |
342 void OnRegisterEventLogConsumer(int id); | |
343 void OnUnregisterAecDumpConsumer(int id); | 340 void OnUnregisterAecDumpConsumer(int id); |
344 void OnUnregisterEventLogConsumer(int id); | |
345 void RegisterAecDumpConsumerOnUIThread(int id); | 341 void RegisterAecDumpConsumerOnUIThread(int id); |
346 void RegisterEventLogConsumerOnUIThread(int id); | |
347 void UnregisterAecDumpConsumerOnUIThread(int id); | 342 void UnregisterAecDumpConsumerOnUIThread(int id); |
348 void UnregisterEventLogConsumerOnUIThread(int id); | |
349 void EnableAecDumpForId(const base::FilePath& file, int id); | 343 void EnableAecDumpForId(const base::FilePath& file, int id); |
350 void EnableEventLogForId(const base::FilePath& file, int id); | |
351 // Sends |file_for_transit| to the render process. | 344 // Sends |file_for_transit| to the render process. |
352 void SendAecDumpFileToRenderer(int id, | 345 void SendAecDumpFileToRenderer(int id, |
353 IPC::PlatformFileForTransit file_for_transit); | 346 IPC::PlatformFileForTransit file_for_transit); |
354 void SendEventLogFileToRenderer(int id, | |
355 IPC::PlatformFileForTransit file_for_transit); | |
356 void SendDisableAecDumpToRenderer(); | 347 void SendDisableAecDumpToRenderer(); |
357 void SendDisableEventLogToRenderer(); | |
358 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file); | 348 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file); |
359 base::FilePath GetEventLogFilePathWithExtensions(const base::FilePath& file); | |
360 #endif | 349 #endif |
361 | 350 |
362 // The token to be passed to the child process and exchanged for a message | 351 // The token to be passed to the child process and exchanged for a message |
363 // pipe to the shell. | 352 // pipe to the shell. |
364 std::string shell_pipe_token_; | 353 std::string shell_pipe_token_; |
365 | 354 |
366 scoped_ptr<MojoApplicationHost> mojo_application_host_; | 355 scoped_ptr<MojoApplicationHost> mojo_application_host_; |
367 | 356 |
368 // The registered IPC listener objects. When this list is empty, we should | 357 // The registered IPC listener objects. When this list is empty, we should |
369 // delete ourselves. | 358 // delete ourselves. |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 514 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
526 | 515 |
527 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 516 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
528 | 517 |
529 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 518 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
530 }; | 519 }; |
531 | 520 |
532 } // namespace content | 521 } // namespace content |
533 | 522 |
534 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 523 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |