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

Unified Diff: chrome/renderer/extensions/extension_dispatcher.h

Issue 9386001: Implement a module system for the extension bindings JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-jigged to use ModuleSystem Created 8 years, 10 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/renderer/extensions/extension_dispatcher.h
diff --git a/chrome/renderer/extensions/extension_dispatcher.h b/chrome/renderer/extensions/extension_dispatcher.h
index 97964302b41e99726f42521fc17514cd447d3aa7..bd26037b2bb2582f44341fa41243a37e40d9f566 100644
--- a/chrome/renderer/extensions/extension_dispatcher.h
+++ b/chrome/renderer/extensions/extension_dispatcher.h
@@ -17,6 +17,7 @@
#include "chrome/renderer/extensions/chrome_v8_context_set.h"
#include "v8/include/v8.h"
+class ModuleSystem;
class GURL;
class URLPattern;
class UserScriptSlave;
@@ -137,6 +138,10 @@ class ExtensionDispatcher : public content::RenderProcessObserver {
const Extension* extension,
const URLPatternSet& origins);
+ void RegisterNativeHandlers(ModuleSystem* module_system,
+ ChromeV8Context* context,
+ bool is_bindings_allowed);
+
// Finds the extension ID for the current context. This is determined from
// |world_id| if it's non-zero, or the URL in |frame| if it is.
std::string GetExtensionID(WebKit::WebFrame* frame, int world_id);

Powered by Google App Engine
This is Rietveld 408576698