| Index: chrome/renderer/extensions/dispatcher.h
|
| diff --git a/chrome/renderer/extensions/dispatcher.h b/chrome/renderer/extensions/dispatcher.h
|
| index b95f5b94d2d8e4d686cf169b6035ee388faa43b4..4f568b8f87749be01cab318039ca33d93c641d94 100644
|
| --- a/chrome/renderer/extensions/dispatcher.h
|
| +++ b/chrome/renderer/extensions/dispatcher.h
|
| @@ -120,8 +120,8 @@ class Dispatcher : public content::RenderProcessObserver {
|
| // Checks that the current context contains an extension that has permission
|
| // to execute the specified function. If it does not, a v8 exception is thrown
|
| // and the method returns false. Otherwise returns true.
|
| - bool CheckCurrentContextAccessToExtensionAPI(
|
| - const std::string& function_name) const;
|
| + bool CheckContextAccessToExtensionAPI(
|
| + const std::string& function_name, ChromeV8Context* context) const;
|
|
|
| private:
|
| friend class RenderViewTest;
|
| @@ -189,6 +189,9 @@ class Dispatcher : public content::RenderProcessObserver {
|
|
|
| void RegisterNativeHandlers(ModuleSystem* module_system,
|
| ChromeV8Context* context);
|
| + void RegisterSchemaGeneratedBindings(ModuleSystem* module_system,
|
| + ChromeV8Context* context,
|
| + v8::Handle<v8::Context> v8_context);
|
|
|
| // Inserts static source code into |source_map_|.
|
| void PopulateSourceMap();
|
| @@ -211,6 +214,11 @@ class Dispatcher : public content::RenderProcessObserver {
|
| int extension_group,
|
| const ExtensionURLInfo& url_info);
|
|
|
| + // Gets |field| from |object| or creates it as an empty object if it doesn't
|
| + // exist.
|
| + v8::Handle<v8::Object> GetOrCreateObject(v8::Handle<v8::Object> object,
|
| + const std::string& field);
|
| +
|
| // True if this renderer is running extensions.
|
| bool is_extension_process_;
|
|
|
|
|