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

Unified Diff: chrome/browser/extensions/extension_function_dispatcher.h

Issue 79070: createWindow api call. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
Index: chrome/browser/extensions/extension_function_dispatcher.h
===================================================================
--- chrome/browser/extensions/extension_function_dispatcher.h (revision 14694)
+++ chrome/browser/extensions/extension_function_dispatcher.h (working copy)
@@ -10,9 +10,11 @@
#include "base/values.h"
+class Browser;
class ExtensionFunction;
class Profile;
class RenderViewHost;
+class RenderViewHostDelegate;
// ExtensionFunctionDispatcher receives requests to execute functions from
// Chromium extensions running in a RenderViewHost and dispatches them to the
@@ -23,6 +25,7 @@
static void GetAllFunctionNames(std::vector<std::string>* names);
ExtensionFunctionDispatcher(RenderViewHost* render_view_host,
+ Browser* browser,
const std::string& extension_id);
// Handle a request to execute an extension function.
@@ -32,6 +35,8 @@
// Send a response to a function.
void SendResponse(ExtensionFunction* api);
+ Browser* browser() { return browser_; }
+
// Handle a malformed message. Possibly the result of an attack, so kill
// the renderer.
void HandleBadMessage(ExtensionFunction* api);
@@ -45,6 +50,8 @@
private:
RenderViewHost* render_view_host_;
+ Browser* browser_;
+
std::string extension_id_;
};
« no previous file with comments | « chrome/browser/extensions/extension_function.h ('k') | chrome/browser/extensions/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698