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

Unified Diff: extensions/renderer/extensions_renderer_client.h

Issue 254473011: Introduce chrome.shell.createWindow stub API for app_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps (shell-api) Created 6 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
« no previous file with comments | « extensions/extensions.gyp ('k') | extensions/renderer/extensions_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/extensions_renderer_client.h
diff --git a/extensions/renderer/extensions_renderer_client.h b/extensions/renderer/extensions_renderer_client.h
index b8f5255b44531b206e0fa86ad4aa1b61bf3380d7..6b06b6c4d4eb9252b7a25393cdb028eb77e1de4c 100644
--- a/extensions/renderer/extensions_renderer_client.h
+++ b/extensions/renderer/extensions_renderer_client.h
@@ -5,8 +5,13 @@
#ifndef EXTENSIONS_RENDERER_EXTENSIONS_RENDERER_CLIENT_H_
#define EXTENSIONS_RENDERER_EXTENSIONS_RENDERER_CLIENT_H_
+class ResourceBundleSourceMap;
+
namespace extensions {
+class ModuleSystem;
+class ScriptContext;
+
// Interface to allow the extensions module to make render-process-specific
// queries of the embedder. Should be Set() once in the render process.
//
@@ -25,6 +30,13 @@ class ExtensionsRendererClient {
// (third_party/WebKit/public/web/WebFrame.h) for additional context.
virtual int GetLowestIsolatedWorldId() const = 0;
+ // Registers additional native C++ code handlers for JS API functions.
+ virtual void RegisterNativeHandlers(ModuleSystem* module_system,
+ ScriptContext* context) = 0;
+
+ // Registers additional JS source code resources for API implementations.
+ virtual void PopulateSourceMap(ResourceBundleSourceMap* source_map) = 0;
+
// Returns the single instance of |this|.
static ExtensionsRendererClient* Get();
« no previous file with comments | « extensions/extensions.gyp ('k') | extensions/renderer/extensions_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698