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 // Returns the current common host for RenderViewImpl's in this process, or an | |
231 // empty string, if there is no common host. | |
Charlie Reis
2012/08/21 22:46:49
I think we need to say more about this in the comm
marja
2012/08/22 14:59:31
Removed this function; added ConvertToCustomHistog
| |
232 static std::string CommonHost(); | |
Charlie Reis
2012/08/21 22:46:49
This isn't virtual or complex, so it can probably
marja
2012/08/22 14:59:31
This no longer exists either.
| |
233 | |
234 // Used for updating the information on which is the common host which all | |
235 // RenderView's share (if any). If there is no common host, this function is | |
236 // called with an empty string. | |
237 static void SetCommonHost(const std::string& host); | |
238 | |
230 private: | 239 private: |
231 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 240 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
232 | 241 |
233 void Init(); | 242 void Init(); |
234 | 243 |
235 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); | 244 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); |
236 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 245 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
237 void OnCreateNewView(const ViewMsg_New_Params& params); | 246 void OnCreateNewView(const ViewMsg_New_Params& params); |
238 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 247 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
239 void OnPurgePluginListCache(bool reload_pages); | 248 void OnPurgePluginListCache(bool reload_pages); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
300 ObserverList<content::RenderProcessObserver> observers_; | 309 ObserverList<content::RenderProcessObserver> observers_; |
301 | 310 |
302 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; | 311 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; |
303 | 312 |
304 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; | 313 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; |
305 | 314 |
306 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 315 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
307 }; | 316 }; |
308 | 317 |
309 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 318 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |