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

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

Issue 7222023: Forward handling of low-mem message to the content renderer client. Add APIs to handle this case. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix constructor 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 virtual bool OnControlMessageReceived(const IPC::Message& msg); 239 virtual bool OnControlMessageReceived(const IPC::Message& msg);
240 240
241 void Init(); 241 void Init();
242 242
243 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); 243 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level);
244 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); 244 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params);
245 void OnSetNextPageID(int32 next_page_id); 245 void OnSetNextPageID(int32 next_page_id);
246 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); 246 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors);
247 void OnCreateNewView(const ViewMsg_New_Params& params); 247 void OnCreateNewView(const ViewMsg_New_Params& params);
248 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); 248 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id);
249 void OnPurgeMemory();
249 void OnPurgePluginListCache(bool reload_pages); 250 void OnPurgePluginListCache(bool reload_pages);
250 void OnNetworkStateChanged(bool online); 251 void OnNetworkStateChanged(bool online);
251 void OnGetAccessibilityTree(); 252 void OnGetAccessibilityTree();
252 253
253 // We initialize WebKit as late as possible. 254 // We initialize WebKit as late as possible.
254 void EnsureWebKitInitialized(); 255 void EnsureWebKitInitialized();
255 256
256 // These objects live solely on the render thread. 257 // These objects live solely on the render thread.
257 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; 258 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_;
258 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 259 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 298
298 // Map of registered v8 extensions. The key is the extension name. 299 // Map of registered v8 extensions. The key is the extension name.
299 std::set<std::string> v8_extensions_; 300 std::set<std::string> v8_extensions_;
300 301
301 ObserverList<RenderProcessObserver> observers_; 302 ObserverList<RenderProcessObserver> observers_;
302 303
303 DISALLOW_COPY_AND_ASSIGN(RenderThread); 304 DISALLOW_COPY_AND_ASSIGN(RenderThread);
304 }; 305 };
305 306
306 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ 307 #endif // CONTENT_RENDERER_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698