| 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_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/threading/thread_checker.h" | 22 #include "base/threading/thread_checker.h" |
| 23 #include "base/timer/timer.h" | 23 #include "base/timer/timer.h" |
| 24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
| 25 #include "content/child/child_thread_impl.h" | 25 #include "content/child/child_thread_impl.h" |
| 26 #include "content/common/content_export.h" | 26 #include "content/common/content_export.h" |
| 27 #include "content/common/frame_replication_state.h" | 27 #include "content/common/frame_replication_state.h" |
| 28 #include "content/common/gpu_process_launch_causes.h" | 28 #include "content/common/gpu_process_launch_causes.h" |
| 29 #include "content/common/storage_partition_service.mojom.h" | 29 #include "content/common/storage_partition_service.mojom.h" |
| 30 #include "content/public/renderer/render_thread.h" | 30 #include "content/public/renderer/render_thread.h" |
| 31 #include "content/renderer/gpu/compositor_dependencies.h" | 31 #include "content/renderer/gpu/compositor_dependencies.h" |
| 32 #include "content/renderer/media/audio_output_client.h" |
| 32 #include "gpu/ipc/client/gpu_channel_host.h" | 33 #include "gpu/ipc/client/gpu_channel_host.h" |
| 33 #include "net/base/network_change_notifier.h" | 34 #include "net/base/network_change_notifier.h" |
| 34 #include "third_party/WebKit/public/platform/WebConnectionType.h" | 35 #include "third_party/WebKit/public/platform/WebConnectionType.h" |
| 35 #include "ui/gfx/native_widget_types.h" | 36 #include "ui/gfx/native_widget_types.h" |
| 36 | |
| 37 #if defined(OS_MACOSX) | 37 #if defined(OS_MACOSX) |
| 38 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 38 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 class GrContext; | 41 class GrContext; |
| 42 class SkBitmap; | 42 class SkBitmap; |
| 43 struct FrameMsg_NewFrame_Params; | 43 struct FrameMsg_NewFrame_Params; |
| 44 struct ViewMsg_New_Params; | 44 struct ViewMsg_New_Params; |
| 45 struct ViewMsg_UpdateScrollbarTheme_Params; | 45 struct ViewMsg_UpdateScrollbarTheme_Params; |
| 46 struct WorkerProcessMsg_CreateWorker_Params; | 46 struct WorkerProcessMsg_CreateWorker_Params; |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 const ViewMsg_UpdateScrollbarTheme_Params& params); | 513 const ViewMsg_UpdateScrollbarTheme_Params& params); |
| 514 void OnSystemColorsChanged(int aqua_color_variant, | 514 void OnSystemColorsChanged(int aqua_color_variant, |
| 515 const std::string& highlight_text_color, | 515 const std::string& highlight_text_color, |
| 516 const std::string& highlight_color); | 516 const std::string& highlight_color); |
| 517 #endif | 517 #endif |
| 518 void OnCreateNewSharedWorker( | 518 void OnCreateNewSharedWorker( |
| 519 const WorkerProcessMsg_CreateWorker_Params& params); | 519 const WorkerProcessMsg_CreateWorker_Params& params); |
| 520 bool RendererIsHidden() const; | 520 bool RendererIsHidden() const; |
| 521 void OnRendererHidden(); | 521 void OnRendererHidden(); |
| 522 void OnRendererVisible(); | 522 void OnRendererVisible(); |
| 523 | |
| 524 void ReleaseFreeMemory(); | 523 void ReleaseFreeMemory(); |
| 525 | 524 |
| 526 // These objects live solely on the render thread. | 525 // These objects live solely on the render thread. |
| 527 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; | 526 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; |
| 528 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; | 527 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; |
| 529 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; | 528 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; |
| 530 std::unique_ptr<scheduler::RendererScheduler> renderer_scheduler_; | 529 std::unique_ptr<scheduler::RendererScheduler> renderer_scheduler_; |
| 531 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; | 530 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; |
| 532 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; | 531 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; |
| 533 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; | 532 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 557 // of all the peer connections created in the renderer. | 556 // of all the peer connections created in the renderer. |
| 558 std::unique_ptr<PeerConnectionTracker> peer_connection_tracker_; | 557 std::unique_ptr<PeerConnectionTracker> peer_connection_tracker_; |
| 559 | 558 |
| 560 // Dispatches all P2P sockets. | 559 // Dispatches all P2P sockets. |
| 561 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; | 560 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; |
| 562 #endif | 561 #endif |
| 563 | 562 |
| 564 // Used on the render thread. | 563 // Used on the render thread. |
| 565 std::unique_ptr<VideoCaptureImplManager> vc_manager_; | 564 std::unique_ptr<VideoCaptureImplManager> vc_manager_; |
| 566 | 565 |
| 566 AudioOutputClient* audio_output_client_; |
| 567 |
| 567 // Used for communicating registering AEC dump consumers with the browser and | 568 // Used for communicating registering AEC dump consumers with the browser and |
| 568 // receving AEC dump file handles when AEC dump is enabled. An AEC dump is | 569 // receving AEC dump file handles when AEC dump is enabled. An AEC dump is |
| 569 // diagnostic audio data for WebRTC stored locally when enabled by the user in | 570 // diagnostic audio data for WebRTC stored locally when enabled by the user in |
| 570 // chrome://webrtc-internals. | 571 // chrome://webrtc-internals. |
| 571 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_; | 572 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_; |
| 572 | 573 |
| 573 // The count of RenderWidgets running through this thread. | 574 // The count of RenderWidgets running through this thread. |
| 574 int widget_count_; | 575 int widget_count_; |
| 575 | 576 |
| 576 // The count of hidden RenderWidgets running through this thread. | 577 // The count of hidden RenderWidgets running through this thread. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 711 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 711 }; | 712 }; |
| 712 | 713 |
| 713 #if defined(COMPILER_MSVC) | 714 #if defined(COMPILER_MSVC) |
| 714 #pragma warning(pop) | 715 #pragma warning(pop) |
| 715 #endif | 716 #endif |
| 716 | 717 |
| 717 } // namespace content | 718 } // namespace content |
| 718 | 719 |
| 719 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 720 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |