| 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_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 321 |
| 322 // Callers can reduce the RenderProcess' priority. | 322 // Callers can reduce the RenderProcess' priority. |
| 323 void SetBackgrounded(bool backgrounded); | 323 void SetBackgrounded(bool backgrounded); |
| 324 | 324 |
| 325 // Handle termination of our process. | 325 // Handle termination of our process. |
| 326 void ProcessDied(bool already_dead); | 326 void ProcessDied(bool already_dead); |
| 327 | 327 |
| 328 virtual void OnGpuSwitching() OVERRIDE; | 328 virtual void OnGpuSwitching() OVERRIDE; |
| 329 | 329 |
| 330 #if defined(ENABLE_WEBRTC) | 330 #if defined(ENABLE_WEBRTC) |
| 331 void OnRegisterAecDumpConsumer(int id); |
| 332 void OnUnregisterAecDumpConsumer(int id); |
| 333 void RegisterAecDumpConsumerOnUIThread(int id); |
| 334 void UnregisterAecDumpConsumerOnUIThread(int id); |
| 335 void EnableAecDumpForId(const base::FilePath& file, int id); |
| 331 // Sends |file_for_transit| to the render process. | 336 // Sends |file_for_transit| to the render process. |
| 332 void SendAecDumpFileToRenderer(IPC::PlatformFileForTransit file_for_transit); | 337 void SendAecDumpFileToRenderer(int id, |
| 338 IPC::PlatformFileForTransit file_for_transit); |
| 333 void SendDisableAecDumpToRenderer(); | 339 void SendDisableAecDumpToRenderer(); |
| 334 #endif | 340 #endif |
| 335 | 341 |
| 336 // GpuMemoryBuffer allocation handler. | 342 // GpuMemoryBuffer allocation handler. |
| 337 void OnAllocateGpuMemoryBuffer(uint32 width, | 343 void OnAllocateGpuMemoryBuffer(uint32 width, |
| 338 uint32 height, | 344 uint32 height, |
| 339 uint32 internalformat, | 345 uint32 internalformat, |
| 340 uint32 usage, | 346 uint32 usage, |
| 341 IPC::Message* reply); | 347 IPC::Message* reply); |
| 342 void GpuMemoryBufferAllocated(IPC::Message* reply, | 348 void GpuMemoryBufferAllocated(IPC::Message* reply, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 447 |
| 442 #if defined(OS_ANDROID) | 448 #if defined(OS_ANDROID) |
| 443 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 449 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
| 444 #endif | 450 #endif |
| 445 | 451 |
| 446 #if defined(ENABLE_WEBRTC) | 452 #if defined(ENABLE_WEBRTC) |
| 447 base::Callback<void(const std::string&)> webrtc_log_message_callback_; | 453 base::Callback<void(const std::string&)> webrtc_log_message_callback_; |
| 448 | 454 |
| 449 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; | 455 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; |
| 450 | 456 |
| 457 // Must be accessed on UI thread. |
| 458 std::vector<int> aec_dump_consumers_; |
| 459 |
| 451 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; | 460 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; |
| 452 #endif | 461 #endif |
| 453 | 462 |
| 454 // Message filter and dispatcher for screen orientation. | 463 // Message filter and dispatcher for screen orientation. |
| 455 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; | 464 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; |
| 456 | 465 |
| 457 int worker_ref_count_; | 466 int worker_ref_count_; |
| 458 | 467 |
| 459 // Records the time when the process starts surviving for workers for UMA. | 468 // Records the time when the process starts surviving for workers for UMA. |
| 460 base::TimeTicks survive_for_worker_start_time_; | 469 base::TimeTicks survive_for_worker_start_time_; |
| 461 | 470 |
| 462 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 471 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 463 | 472 |
| 464 #if defined(OS_MACOSX) | 473 #if defined(OS_MACOSX) |
| 465 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; | 474 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; |
| 466 #endif | 475 #endif |
| 467 | 476 |
| 468 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 477 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 469 }; | 478 }; |
| 470 | 479 |
| 471 } // namespace content | 480 } // namespace content |
| 472 | 481 |
| 473 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 482 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |