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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: associated with IPC channel Created 3 years, 8 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_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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 public base::FieldTrialList::Observer, 164 public base::FieldTrialList::Observer,
165 NON_EXPORTED_BASE(public mojom::Renderer), 165 NON_EXPORTED_BASE(public mojom::Renderer),
166 NON_EXPORTED_BASE(public CompositorDependencies) { 166 NON_EXPORTED_BASE(public CompositorDependencies) {
167 public: 167 public:
168 static RenderThreadImpl* Create(const InProcessChildThreadParams& params); 168 static RenderThreadImpl* Create(const InProcessChildThreadParams& params);
169 static RenderThreadImpl* Create( 169 static RenderThreadImpl* Create(
170 std::unique_ptr<base::MessageLoop> main_message_loop, 170 std::unique_ptr<base::MessageLoop> main_message_loop,
171 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler); 171 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler);
172 static RenderThreadImpl* current(); 172 static RenderThreadImpl* current();
173 static mojom::RenderMessageFilter* current_render_message_filter(); 173 static mojom::RenderMessageFilter* current_render_message_filter();
174 static mojom::RenderMessageFilterUI* current_render_message_filter_ui();
174 175
175 static void SetRenderMessageFilterForTesting( 176 static void SetRenderMessageFilterForTesting(
176 mojom::RenderMessageFilter* render_message_filter); 177 mojom::RenderMessageFilter* render_message_filter);
178 static void SetRenderMessageFilterUIForTesting(
179 mojom::RenderMessageFilterUI* render_message_filter_ui);
177 180
178 ~RenderThreadImpl() override; 181 ~RenderThreadImpl() override;
179 void Shutdown() override; 182 void Shutdown() override;
180 bool ShouldBeDestroyed() override; 183 bool ShouldBeDestroyed() override;
181 184
182 // When initializing WebKit, ensure that any schemes needed for the content 185 // When initializing WebKit, ensure that any schemes needed for the content
183 // module are registered properly. Static to allow sharing with tests. 186 // module are registered properly. Static to allow sharing with tests.
184 static void RegisterSchemes(); 187 static void RegisterSchemes();
185 188
186 // RenderThread implementation: 189 // RenderThread implementation:
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 VideoCaptureImplManager* video_capture_impl_manager() const { 363 VideoCaptureImplManager* video_capture_impl_manager() const {
361 return vc_manager_.get(); 364 return vc_manager_.get();
362 } 365 }
363 366
364 ui::ChildSharedBitmapManager* shared_bitmap_manager() const { 367 ui::ChildSharedBitmapManager* shared_bitmap_manager() const {
365 DCHECK(shared_bitmap_manager_); 368 DCHECK(shared_bitmap_manager_);
366 return shared_bitmap_manager_.get(); 369 return shared_bitmap_manager_.get();
367 } 370 }
368 371
369 mojom::RenderFrameMessageFilter* render_frame_message_filter(); 372 mojom::RenderFrameMessageFilter* render_frame_message_filter();
373 mojom::RenderMessageFilterUI* render_message_filter_ui();
370 mojom::RenderMessageFilter* render_message_filter(); 374 mojom::RenderMessageFilter* render_message_filter();
371 375
372 // Get the GPU channel. Returns NULL if the channel is not established or 376 // Get the GPU channel. Returns NULL if the channel is not established or
373 // has been lost. 377 // has been lost.
374 gpu::GpuChannelHost* GetGpuChannel(); 378 gpu::GpuChannelHost* GetGpuChannel();
375 379
376 // Returns a SingleThreadTaskRunner instance corresponding to the message loop 380 // Returns a SingleThreadTaskRunner instance corresponding to the message loop
377 // of the thread on which file operations should be run. Must be called 381 // of the thread on which file operations should be run. Must be called
378 // on the renderer's main thread. 382 // on the renderer's main thread.
379 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadTaskRunner(); 383 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadTaskRunner();
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 PendingFrameCreateMap pending_frame_creates_; 778 PendingFrameCreateMap pending_frame_creates_;
775 779
776 mojom::StoragePartitionServicePtr storage_partition_service_; 780 mojom::StoragePartitionServicePtr storage_partition_service_;
777 781
778 AssociatedInterfaceRegistryImpl associated_interfaces_; 782 AssociatedInterfaceRegistryImpl associated_interfaces_;
779 783
780 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; 784 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_;
781 785
782 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; 786 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_;
783 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; 787 mojom::RenderMessageFilterAssociatedPtr render_message_filter_;
788 mojom::RenderMessageFilterUIAssociatedPtr render_message_filter_ui_;
784 789
785 base::CancelableClosure record_purge_suspend_metric_closure_; 790 base::CancelableClosure record_purge_suspend_metric_closure_;
786 RendererMemoryMetrics purge_and_suspend_memory_metrics_; 791 RendererMemoryMetrics purge_and_suspend_memory_metrics_;
787 base::CancelableClosure record_purge_suspend_growth_metric_closure_; 792 base::CancelableClosure record_purge_suspend_growth_metric_closure_;
788 bool needs_to_record_first_active_paint_; 793 bool needs_to_record_first_active_paint_;
789 794
790 int32_t client_id_; 795 int32_t client_id_;
791 796
792 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; 797 variations::ChildProcessFieldTrialSyncer field_trial_syncer_;
793 798
794 mojom::FrameSinkProviderPtr frame_sink_provider_; 799 mojom::FrameSinkProviderPtr frame_sink_provider_;
795 800
796 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 801 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
797 }; 802 };
798 803
799 #if defined(COMPILER_MSVC) 804 #if defined(COMPILER_MSVC)
800 #pragma warning(pop) 805 #pragma warning(pop)
801 #endif 806 #endif
802 807
803 } // namespace content 808 } // namespace content
804 809
805 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 810 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698