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

Side by Side 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 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_PROCESS_OBSERVER_H_ 5 #ifndef CONTENT_RENDERER_RENDER_PROCESS_OBSERVER_H_
6 #define CONTENT_RENDERER_RENDER_PROCESS_OBSERVER_H_ 6 #define CONTENT_RENDERER_RENDER_PROCESS_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 11
12 // Base class for objects that want to filter control IPC messages. 12 class GURL;
13
14 // Base class for objects that want to filter control IPC messages and get
15 // notified of events.
13 class RenderProcessObserver { 16 class RenderProcessObserver {
14 public: 17 public:
18 RenderProcessObserver();
15 virtual ~RenderProcessObserver(); 19 virtual ~RenderProcessObserver();
16 20
17 // Allows filtering of control messages. 21 // Allows filtering of control messages.
18 virtual bool OnControlMessageReceived(const IPC::Message& message); 22 virtual bool OnControlMessageReceived(const IPC::Message& message);
19 23
20 // Notification that the render process is shutting down. 24 // Notification that the render process is shutting down.
21 virtual void OnRenderProcessShutdown(); 25 virtual void OnRenderProcessShutdown();
22 26
27 // Called right after the WebKit API is initialized.
28 virtual void WebKitInitialized();
29
30 // See WebViewClient::allowScriptExtension
31 virtual bool AllowScriptExtension(const std::string& v8_extension_name,
32 const GURL& url,
33 int extension_group);
34
35 virtual void IdleNotification();
36
23 private: 37 private:
24 DISALLOW_COPY_AND_ASSIGN(RenderProcessObserver); 38 DISALLOW_COPY_AND_ASSIGN(RenderProcessObserver);
25 }; 39 };
26 40
27 #endif // CONTENT_RENDERER_RENDER_PROCESS_OBSERVER_H_ 41 #endif // CONTENT_RENDERER_RENDER_PROCESS_OBSERVER_H_
OLDNEW
« 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