diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-01 00:38:25 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-01 00:38:25 +0000 |
commit | 1a0436898a9e983e4b0188c9a7f124c5668a29a7 (patch) | |
tree | 452cba4b28542845ebb7af6fa8f68a4bdcace14e /extensions/browser/extension_function_dispatcher.h | |
parent | fc339ed2b3623705f3109a74f477626c26859b68 (diff) | |
download | chromium_src-1a0436898a9e983e4b0188c9a7f124c5668a29a7.zip chromium_src-1a0436898a9e983e4b0188c9a7f124c5668a29a7.tar.gz chromium_src-1a0436898a9e983e4b0188c9a7f124c5668a29a7.tar.bz2 |
extensions: Remove ChromeRenderMessageFilter dependency.
Move handling of ExtensionHostMsg_RequestForIOThread
messages from ChromeRenderMessageFilter to
ExtensionMessageFilter.
BUG=339637
TBR=darin@chromium.org
Review URL: https://codereview.chromium.org/218623003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/browser/extension_function_dispatcher.h')
-rw-r--r-- | extensions/browser/extension_function_dispatcher.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/extensions/browser/extension_function_dispatcher.h b/extensions/browser/extension_function_dispatcher.h index 7514505..e6ef445 100644 --- a/extensions/browser/extension_function_dispatcher.h +++ b/extensions/browser/extension_function_dispatcher.h @@ -13,7 +13,6 @@ #include "extensions/browser/extension_function.h" #include "ipc/ipc_sender.h" -class ChromeRenderMessageFilter; struct ExtensionHostMsg_Request_Params; namespace content { @@ -24,12 +23,13 @@ class WebContents; } namespace extensions { + class Extension; class ExtensionAPI; +class ExtensionMessageFilter; class InfoMap; class ProcessMap; class WindowController; -} // A factory function for creating new ExtensionFunction instances. typedef ExtensionFunction* (*ExtensionFunctionFactory)(); @@ -52,9 +52,9 @@ class ExtensionFunctionDispatcher public: class Delegate { public: - // Returns the extensions::WindowController associated with this delegate, - // or NULL if no window is associated with the delegate. - virtual extensions::WindowController* GetExtensionWindowController() const; + // Returns the WindowController associated with this delegate, or NULL if no + // window is associated with the delegate. + virtual WindowController* GetExtensionWindowController() const; // Asks the delegate for any relevant WebContents associated with this // context. For example, the WebContents in which an infobar or @@ -82,10 +82,10 @@ class ExtensionFunctionDispatcher // Dispatches an IO-thread extension function. Only used for specific // functions that must be handled on the IO-thread. static void DispatchOnIOThread( - extensions::InfoMap* extension_info_map, - void* profile, + InfoMap* extension_info_map, + void* profile_id, int render_process_id, - base::WeakPtr<ChromeRenderMessageFilter> ipc_sender, + base::WeakPtr<ExtensionMessageFilter> ipc_sender, int routing_id, const ExtensionHostMsg_Request_Params& params); @@ -115,7 +115,7 @@ class ExtensionFunctionDispatcher // Called when an ExtensionFunction is done executing, after it has sent // a response (if any) to the extension. - void OnExtensionFunctionCompleted(const extensions::Extension* extension); + void OnExtensionFunctionCompleted(const Extension* extension); // The BrowserContext that this dispatcher is associated with. content::BrowserContext* browser_context() { return browser_context_; } @@ -134,7 +134,7 @@ class ExtensionFunctionDispatcher // is returned. |function| must not be run in that case. static bool CheckPermissions( ExtensionFunction* function, - const extensions::Extension* extension, + const Extension* extension, const ExtensionHostMsg_Request_Params& params, const ExtensionFunction::ResponseCallback& callback); @@ -143,11 +143,11 @@ class ExtensionFunctionDispatcher // Does not set subclass properties, or include_incognito. static ExtensionFunction* CreateExtensionFunction( const ExtensionHostMsg_Request_Params& params, - const extensions::Extension* extension, + const Extension* extension, int requesting_process_id, - const extensions::ProcessMap& process_map, - extensions::ExtensionAPI* api, - void* profile, + const ProcessMap& process_map, + ExtensionAPI* api, + void* profile_id, const ExtensionFunction::ResponseCallback& callback); // Helper to run the response callback with an access denied error. Can be @@ -173,4 +173,6 @@ class ExtensionFunctionDispatcher UIThreadResponseCallbackWrapperMap ui_thread_response_callback_wrappers_; }; +} // namespace extensions + #endif // EXTENSIONS_BROWSER_EXTENSION_FUNCTION_DISPATCHER_H_ |