| Index: chrome/renderer/extensions/dispatcher.h
|
| diff --git a/chrome/renderer/extensions/dispatcher.h b/chrome/renderer/extensions/dispatcher.h
|
| index 44e80bf44e97ad21f503d2273b15fc36d3db76cf..d5b22e115e38b70c22eac817bb7d49669af37358 100644
|
| --- a/chrome/renderer/extensions/dispatcher.h
|
| +++ b/chrome/renderer/extensions/dispatcher.h
|
| @@ -129,6 +129,18 @@ class Dispatcher : public content::RenderProcessObserver {
|
| bool CheckContextAccessToExtensionAPI(
|
| const std::string& function_name, ChromeV8Context* context) const;
|
|
|
| + // Dispatches the event named |event_name| to all render views.
|
| + void DispatchEvent(const std::string& extension_id,
|
| + const std::string& event_name) const;
|
| +
|
| + // Calls a method |method_name| in a module |module_name| belonging to the
|
| + // module system from |context|. Intended as a callback target from
|
| + // ChromeV8ContextSet::ForEach. Public to be called from ExtensionHelper.
|
| + static void CallModuleMethod(const std::string& module_name,
|
| + const std::string& method_name,
|
| + const base::ListValue* args,
|
| + ChromeV8Context* context);
|
| +
|
| private:
|
| friend class RenderViewTest;
|
| FRIEND_TEST_ALL_PREFIXES(RendererPermissionsPolicyDelegateTest,
|
| @@ -144,6 +156,7 @@ class Dispatcher : public content::RenderProcessObserver {
|
|
|
| void OnSetChannel(int channel);
|
| void OnMessageInvoke(const std::string& extension_id,
|
| + const std::string& module_name,
|
| const std::string& function_name,
|
| const base::ListValue& args,
|
| bool user_gesture);
|
|
|