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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 void Init(); | 231 void Init(); |
232 | 232 |
233 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); | 233 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); |
234 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); | 234 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); |
235 void OnSetNextPageID(int32 next_page_id); | 235 void OnSetNextPageID(int32 next_page_id); |
236 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 236 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
237 void OnCreateNewView(const ViewMsg_New_Params& params); | 237 void OnCreateNewView(const ViewMsg_New_Params& params); |
238 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 238 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
239 void OnPurgePluginListCache(bool reload_pages); | 239 void OnPurgePluginListCache(bool reload_pages); |
240 void OnNetworkStateChanged(bool online); | |
241 void OnGetAccessibilityTree(); | 240 void OnGetAccessibilityTree(); |
242 | 241 |
243 // We initialize WebKit as late as possible. | 242 // We initialize WebKit as late as possible. |
244 void EnsureWebKitInitialized(); | 243 void EnsureWebKitInitialized(); |
245 | 244 |
246 // These objects live solely on the render thread. | 245 // These objects live solely on the render thread. |
247 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; | 246 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; |
248 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 247 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
249 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; | 248 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; |
250 scoped_ptr<RendererWebKitClientImpl> webkit_client_; | 249 scoped_ptr<RendererWebKitClientImpl> webkit_client_; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 284 |
286 // Map of registered v8 extensions. The key is the extension name. | 285 // Map of registered v8 extensions. The key is the extension name. |
287 std::set<std::string> v8_extensions_; | 286 std::set<std::string> v8_extensions_; |
288 | 287 |
289 ObserverList<RenderProcessObserver> observers_; | 288 ObserverList<RenderProcessObserver> observers_; |
290 | 289 |
291 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 290 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
292 }; | 291 }; |
293 | 292 |
294 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ | 293 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |