OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 // Sends a message to the browser to clear thed host cache. | 187 // Sends a message to the browser to clear thed host cache. |
188 void ClearHostResolverCache(); | 188 void ClearHostResolverCache(); |
189 | 189 |
190 // Sends a message to the browser to clear the predictor cache. | 190 // Sends a message to the browser to clear the predictor cache. |
191 void ClearPredictorCache(); | 191 void ClearPredictorCache(); |
192 | 192 |
193 // Sends a message to the browser to enable/disable spdy. | 193 // Sends a message to the browser to enable/disable spdy. |
194 void EnableSpdy(bool enable); | 194 void EnableSpdy(bool enable); |
195 | 195 |
196 // Asynchronously establish a channel to the GPU plugin if not previously | |
197 // established or if it has been lost (for example if the GPU plugin crashed). | |
198 // Use GetGpuChannel() to determine when the channel is ready for use. | |
199 void EstablishGpuChannel(content::CauseForGpuLaunch); | |
200 | |
201 // Synchronously establish a channel to the GPU plugin if not previously | 196 // Synchronously establish a channel to the GPU plugin if not previously |
202 // established or if it has been lost (for example if the GPU plugin crashed). | 197 // established or if it has been lost (for example if the GPU plugin crashed). |
203 // If there is a pending asynchronous request, it will be completed by the | 198 // If there is a pending asynchronous request, it will be completed by the |
204 // time this routine returns. | 199 // time this routine returns. |
205 GpuChannelHost* EstablishGpuChannelSync(content::CauseForGpuLaunch); | 200 GpuChannelHost* EstablishGpuChannelSync(content::CauseForGpuLaunch); |
206 | 201 |
207 // Get the GPU channel. Returns NULL if the channel is not established or | 202 // Get the GPU channel. Returns NULL if the channel is not established or |
208 // has been lost. | 203 // has been lost. |
209 GpuChannelHost* GetGpuChannel(); | 204 GpuChannelHost* GetGpuChannel(); |
210 | 205 |
(...skipping 19 matching lines...) Expand all Loading... |
230 | 225 |
231 void Init(); | 226 void Init(); |
232 | 227 |
233 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); | 228 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); |
234 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); | 229 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); |
235 void OnSetNextPageID(int32 next_page_id); | 230 void OnSetNextPageID(int32 next_page_id); |
236 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 231 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
237 void OnCreateNewView(const ViewMsg_New_Params& params); | 232 void OnCreateNewView(const ViewMsg_New_Params& params); |
238 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 233 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
239 void OnPurgePluginListCache(bool reload_pages); | 234 void OnPurgePluginListCache(bool reload_pages); |
240 void OnGpuChannelEstablished(const IPC::ChannelHandle& channel_handle, | |
241 base::ProcessHandle renderer_process_for_gpu, | |
242 const GPUInfo& gpu_info); | |
243 void OnGetAccessibilityTree(); | 235 void OnGetAccessibilityTree(); |
244 | 236 |
245 // We initialize WebKit as late as possible. | 237 // We initialize WebKit as late as possible. |
246 void EnsureWebKitInitialized(); | 238 void EnsureWebKitInitialized(); |
247 | 239 |
248 // These objects live solely on the render thread. | 240 // These objects live solely on the render thread. |
249 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; | 241 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; |
250 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 242 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
251 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; | 243 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; |
252 scoped_ptr<RendererWebKitClientImpl> webkit_client_; | 244 scoped_ptr<RendererWebKitClientImpl> webkit_client_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 276 |
285 // Map of registered v8 extensions. The key is the extension name. | 277 // Map of registered v8 extensions. The key is the extension name. |
286 std::set<std::string> v8_extensions_; | 278 std::set<std::string> v8_extensions_; |
287 | 279 |
288 ObserverList<RenderProcessObserver> observers_; | 280 ObserverList<RenderProcessObserver> observers_; |
289 | 281 |
290 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 282 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
291 }; | 283 }; |
292 | 284 |
293 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ | 285 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |