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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 public ChildThread, | 77 public ChildThread, |
78 public GpuChannelHostFactory { | 78 public GpuChannelHostFactory { |
79 public: | 79 public: |
80 static RenderThreadImpl* current(); | 80 static RenderThreadImpl* current(); |
81 | 81 |
82 RenderThreadImpl(); | 82 RenderThreadImpl(); |
83 // Constructor that's used when running in single process mode. | 83 // Constructor that's used when running in single process mode. |
84 explicit RenderThreadImpl(const std::string& channel_name); | 84 explicit RenderThreadImpl(const std::string& channel_name); |
85 virtual ~RenderThreadImpl(); | 85 virtual ~RenderThreadImpl(); |
86 | 86 |
87 // Returns the routing ID of the RenderWidget containing the current script | |
88 // execution context (corresponding to WebFrame::frameForCurrentContext). | |
89 static int32 RoutingIDForCurrentContext(); | |
90 | |
91 // When initializing WebKit, ensure that any schemes needed for the content | 87 // When initializing WebKit, ensure that any schemes needed for the content |
92 // module are registered properly. Static to allow sharing with tests. | 88 // module are registered properly. Static to allow sharing with tests. |
93 static void RegisterSchemes(); | 89 static void RegisterSchemes(); |
94 | 90 |
95 // content::RenderThread implementation: | 91 // content::RenderThread implementation: |
96 virtual bool Send(IPC::Message* msg) OVERRIDE; | 92 virtual bool Send(IPC::Message* msg) OVERRIDE; |
97 virtual MessageLoop* GetMessageLoop() OVERRIDE; | 93 virtual MessageLoop* GetMessageLoop() OVERRIDE; |
98 virtual IPC::SyncChannel* GetChannel() OVERRIDE; | 94 virtual IPC::SyncChannel* GetChannel() OVERRIDE; |
99 virtual std::string GetLocale() OVERRIDE; | 95 virtual std::string GetLocale() OVERRIDE; |
100 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() OVERRIDE; | 96 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() OVERRIDE; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 ObserverList<content::RenderProcessObserver> observers_; | 305 ObserverList<content::RenderProcessObserver> observers_; |
310 | 306 |
311 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; | 307 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; |
312 | 308 |
313 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; | 309 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; |
314 | 310 |
315 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 311 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
316 }; | 312 }; |
317 | 313 |
318 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 314 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |