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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 // by this class and must be null-tested before each use to detect context | 220 // by this class and must be null-tested before each use to detect context |
221 // loss. The returned WeakPtr<> is only valid on the compositor thread when | 221 // loss. The returned WeakPtr<> is only valid on the compositor thread when |
222 // threaded compositing is enabled. | 222 // threaded compositing is enabled. |
223 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> GetGpuVDAContext3D(); | 223 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> GetGpuVDAContext3D(); |
224 | 224 |
225 // AudioRendererMixerManager instance which manages renderer side mixer | 225 // AudioRendererMixerManager instance which manages renderer side mixer |
226 // instances shared based on configured audio parameters. Lazily created on | 226 // instances shared based on configured audio parameters. Lazily created on |
227 // first call. | 227 // first call. |
228 content::AudioRendererMixerManager* GetAudioRendererMixerManager(); | 228 content::AudioRendererMixerManager* GetAudioRendererMixerManager(); |
229 | 229 |
230 // Used for updating the information on which is the common host which all | |
231 // RenderView's share (if any). If there is no common host, this function is | |
Charlie Reis
2012/08/16 16:22:56
This comment seems relevant for SetCommonHost(), n
marja
2012/08/21 15:21:15
Done.
| |
232 // called with an empty string. | |
233 static std::string CommonHost(); | |
234 | |
235 static void SetCommonHost(const std::string& host); | |
236 | |
230 private: | 237 private: |
231 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 238 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
232 | 239 |
233 void Init(); | 240 void Init(); |
234 | 241 |
235 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); | 242 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); |
236 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 243 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
237 void OnCreateNewView(const ViewMsg_New_Params& params); | 244 void OnCreateNewView(const ViewMsg_New_Params& params); |
238 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 245 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
239 void OnPurgePluginListCache(bool reload_pages); | 246 void OnPurgePluginListCache(bool reload_pages); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
300 ObserverList<content::RenderProcessObserver> observers_; | 307 ObserverList<content::RenderProcessObserver> observers_; |
301 | 308 |
302 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; | 309 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; |
303 | 310 |
304 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; | 311 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; |
305 | 312 |
306 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 313 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
307 }; | 314 }; |
308 | 315 |
309 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 316 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |