Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: content/renderer/render_thread.h

Issue 7259004: Convert ViewMsg_NetworkStateChanged from routed -> control, allowing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create a very simple observer, use it in BrowserProcess Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 void Init(); 226 void Init();
227 227
228 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); 228 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level);
229 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); 229 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params);
230 void OnSetNextPageID(int32 next_page_id); 230 void OnSetNextPageID(int32 next_page_id);
231 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); 231 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors);
232 void OnCreateNewView(const ViewMsg_New_Params& params); 232 void OnCreateNewView(const ViewMsg_New_Params& params);
233 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); 233 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id);
234 void OnPurgePluginListCache(bool reload_pages); 234 void OnPurgePluginListCache(bool reload_pages);
235 void OnNetworkStateChanged(bool online);
235 void OnGetAccessibilityTree(); 236 void OnGetAccessibilityTree();
236 237
237 // We initialize WebKit as late as possible. 238 // We initialize WebKit as late as possible.
238 void EnsureWebKitInitialized(); 239 void EnsureWebKitInitialized();
239 240
240 // These objects live solely on the render thread. 241 // These objects live solely on the render thread.
241 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; 242 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_;
242 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 243 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
243 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; 244 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_;
244 scoped_ptr<RendererWebKitClientImpl> webkit_client_; 245 scoped_ptr<RendererWebKitClientImpl> webkit_client_;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 277
277 // Map of registered v8 extensions. The key is the extension name. 278 // Map of registered v8 extensions. The key is the extension name.
278 std::set<std::string> v8_extensions_; 279 std::set<std::string> v8_extensions_;
279 280
280 ObserverList<RenderProcessObserver> observers_; 281 ObserverList<RenderProcessObserver> observers_;
281 282
282 DISALLOW_COPY_AND_ASSIGN(RenderThread); 283 DISALLOW_COPY_AND_ASSIGN(RenderThread);
283 }; 284 };
284 285
285 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ 286 #endif // CONTENT_RENDERER_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698