| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 public base::FieldTrialList::Observer, | 163 public base::FieldTrialList::Observer, |
| 164 NON_EXPORTED_BASE(public mojom::Renderer), | 164 NON_EXPORTED_BASE(public mojom::Renderer), |
| 165 NON_EXPORTED_BASE(public CompositorDependencies) { | 165 NON_EXPORTED_BASE(public CompositorDependencies) { |
| 166 public: | 166 public: |
| 167 static RenderThreadImpl* Create(const InProcessChildThreadParams& params); | 167 static RenderThreadImpl* Create(const InProcessChildThreadParams& params); |
| 168 static RenderThreadImpl* Create( | 168 static RenderThreadImpl* Create( |
| 169 std::unique_ptr<base::MessageLoop> main_message_loop, | 169 std::unique_ptr<base::MessageLoop> main_message_loop, |
| 170 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler); | 170 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler); |
| 171 static RenderThreadImpl* current(); | 171 static RenderThreadImpl* current(); |
| 172 static mojom::RenderMessageFilter* current_render_message_filter(); | 172 static mojom::RenderMessageFilter* current_render_message_filter(); |
| 173 static mojom::RenderMessageFilterUI* current_render_message_filter_ui(); |
| 173 | 174 |
| 174 static void SetRenderMessageFilterForTesting( | 175 static void SetRenderMessageFilterForTesting( |
| 175 mojom::RenderMessageFilter* render_message_filter); | 176 mojom::RenderMessageFilter* render_message_filter); |
| 176 | 177 |
| 177 ~RenderThreadImpl() override; | 178 ~RenderThreadImpl() override; |
| 178 void Shutdown() override; | 179 void Shutdown() override; |
| 179 bool ShouldBeDestroyed() override; | 180 bool ShouldBeDestroyed() override; |
| 180 | 181 |
| 181 // When initializing WebKit, ensure that any schemes needed for the content | 182 // When initializing WebKit, ensure that any schemes needed for the content |
| 182 // module are registered properly. Static to allow sharing with tests. | 183 // module are registered properly. Static to allow sharing with tests. |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 VideoCaptureImplManager* video_capture_impl_manager() const { | 360 VideoCaptureImplManager* video_capture_impl_manager() const { |
| 360 return vc_manager_.get(); | 361 return vc_manager_.get(); |
| 361 } | 362 } |
| 362 | 363 |
| 363 ui::ChildSharedBitmapManager* shared_bitmap_manager() const { | 364 ui::ChildSharedBitmapManager* shared_bitmap_manager() const { |
| 364 DCHECK(shared_bitmap_manager_); | 365 DCHECK(shared_bitmap_manager_); |
| 365 return shared_bitmap_manager_.get(); | 366 return shared_bitmap_manager_.get(); |
| 366 } | 367 } |
| 367 | 368 |
| 368 mojom::RenderFrameMessageFilter* render_frame_message_filter(); | 369 mojom::RenderFrameMessageFilter* render_frame_message_filter(); |
| 370 mojom::RenderMessageFilterUI* render_message_filter_ui(); |
| 369 mojom::RenderMessageFilter* render_message_filter(); | 371 mojom::RenderMessageFilter* render_message_filter(); |
| 370 | 372 |
| 371 // Get the GPU channel. Returns NULL if the channel is not established or | 373 // Get the GPU channel. Returns NULL if the channel is not established or |
| 372 // has been lost. | 374 // has been lost. |
| 373 gpu::GpuChannelHost* GetGpuChannel(); | 375 gpu::GpuChannelHost* GetGpuChannel(); |
| 374 | 376 |
| 375 // Returns a SingleThreadTaskRunner instance corresponding to the message loop | 377 // Returns a SingleThreadTaskRunner instance corresponding to the message loop |
| 376 // of the thread on which file operations should be run. Must be called | 378 // of the thread on which file operations should be run. Must be called |
| 377 // on the renderer's main thread. | 379 // on the renderer's main thread. |
| 378 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadTaskRunner(); | 380 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadTaskRunner(); |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 PendingFrameCreateMap pending_frame_creates_; | 771 PendingFrameCreateMap pending_frame_creates_; |
| 770 | 772 |
| 771 mojom::StoragePartitionServicePtr storage_partition_service_; | 773 mojom::StoragePartitionServicePtr storage_partition_service_; |
| 772 | 774 |
| 773 AssociatedInterfaceRegistryImpl associated_interfaces_; | 775 AssociatedInterfaceRegistryImpl associated_interfaces_; |
| 774 | 776 |
| 775 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; | 777 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; |
| 776 | 778 |
| 777 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; | 779 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; |
| 778 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; | 780 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; |
| 781 mojom::RenderMessageFilterUIPtr render_message_filter_ui_ = nullptr; |
| 779 | 782 |
| 780 base::CancelableClosure record_purge_suspend_metric_closure_; | 783 base::CancelableClosure record_purge_suspend_metric_closure_; |
| 781 RendererMemoryMetrics purge_and_suspend_memory_metrics_; | 784 RendererMemoryMetrics purge_and_suspend_memory_metrics_; |
| 782 base::CancelableClosure record_purge_suspend_growth_metric_closure_; | 785 base::CancelableClosure record_purge_suspend_growth_metric_closure_; |
| 783 bool needs_to_record_first_active_paint_; | 786 bool needs_to_record_first_active_paint_; |
| 784 | 787 |
| 785 int32_t client_id_; | 788 int32_t client_id_; |
| 786 | 789 |
| 787 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; | 790 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; |
| 788 | 791 |
| 789 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 792 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 790 }; | 793 }; |
| 791 | 794 |
| 792 #if defined(COMPILER_MSVC) | 795 #if defined(COMPILER_MSVC) |
| 793 #pragma warning(pop) | 796 #pragma warning(pop) |
| 794 #endif | 797 #endif |
| 795 | 798 |
| 796 } // namespace content | 799 } // namespace content |
| 797 | 800 |
| 798 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 801 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |