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

Unified Diff: content/renderer/render_process_observer.h

Issue 6765011: Move the dispatching of extension messages out of RenderThread. This also moves a bunch of exten... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/content_renderer_client.cc ('k') | content/renderer/render_process_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_process_observer.h
===================================================================
--- content/renderer/render_process_observer.h (revision 79565)
+++ content/renderer/render_process_observer.h (working copy)
@@ -9,9 +9,13 @@
#include "base/basictypes.h"
#include "ipc/ipc_message.h"
-// Base class for objects that want to filter control IPC messages.
+class GURL;
+
+// Base class for objects that want to filter control IPC messages and get
+// notified of events.
class RenderProcessObserver {
public:
+ RenderProcessObserver();
virtual ~RenderProcessObserver();
// Allows filtering of control messages.
@@ -20,6 +24,16 @@
// Notification that the render process is shutting down.
virtual void OnRenderProcessShutdown();
+ // Called right after the WebKit API is initialized.
+ virtual void WebKitInitialized();
+
+ // See WebViewClient::allowScriptExtension
+ virtual bool AllowScriptExtension(const std::string& v8_extension_name,
+ const GURL& url,
+ int extension_group);
+
+ virtual void IdleNotification();
+
private:
DISALLOW_COPY_AND_ASSIGN(RenderProcessObserver);
};
« no previous file with comments | « content/renderer/content_renderer_client.cc ('k') | content/renderer/render_process_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698