| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // |params|. Can be called on any thread. | 113 // |params|. Can be called on any thread. |
| 114 // Does not set subclass properties, or include_incognito. | 114 // Does not set subclass properties, or include_incognito. |
| 115 static ExtensionFunction* CreateExtensionFunction( | 115 static ExtensionFunction* CreateExtensionFunction( |
| 116 const ExtensionHostMsg_Request_Params& params, | 116 const ExtensionHostMsg_Request_Params& params, |
| 117 const extensions::Extension* extension, | 117 const extensions::Extension* extension, |
| 118 int requesting_process_id, | 118 int requesting_process_id, |
| 119 const extensions::ProcessMap& process_map, | 119 const extensions::ProcessMap& process_map, |
| 120 extensions::ExtensionAPI* api, | 120 extensions::ExtensionAPI* api, |
| 121 void* profile, | 121 void* profile, |
| 122 IPC::Sender* ipc_sender, | 122 IPC::Sender* ipc_sender, |
| 123 content::RenderViewHost* render_view_host, |
| 123 int routing_id); | 124 int routing_id); |
| 124 | 125 |
| 125 // Helper to send an access denied error to the requesting renderer. Can be | 126 // Helper to send an access denied error to the requesting renderer. Can be |
| 126 // called on any thread. | 127 // called on any thread. |
| 127 static void SendAccessDenied(IPC::Sender* ipc_sender, | 128 static void SendAccessDenied(IPC::Sender* ipc_sender, |
| 128 int routing_id, | 129 int routing_id, |
| 129 int request_id); | 130 int request_id); |
| 130 | 131 |
| 131 Profile* profile_; | 132 Profile* profile_; |
| 132 | 133 |
| 133 Delegate* delegate_; | 134 Delegate* delegate_; |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 137 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
| OLD | NEW |