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

Side by Side Diff: chrome/browser/extensions/extension_function_dispatcher.h

Issue 9978012: Revert 130697 - Reland r130462: Implement FeatureProvider for ExtensionAPI." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 class ExtensionInfoMap; 21 class ExtensionInfoMap;
22 class Profile; 22 class Profile;
23 struct ExtensionHostMsg_Request_Params; 23 struct ExtensionHostMsg_Request_Params;
24 24
25 namespace content { 25 namespace content {
26 class RenderViewHost; 26 class RenderViewHost;
27 class WebContents; 27 class WebContents;
28 } 28 }
29 29
30 namespace extensions { 30 namespace extensions {
31 class ExtensionAPI;
32 class ProcessMap; 31 class ProcessMap;
33 } 32 }
34 33
35 // A factory function for creating new ExtensionFunction instances. 34 // A factory function for creating new ExtensionFunction instances.
36 typedef ExtensionFunction* (*ExtensionFunctionFactory)(); 35 typedef ExtensionFunction* (*ExtensionFunctionFactory)();
37 36
38 // ExtensionFunctionDispatcher receives requests to execute functions from 37 // ExtensionFunctionDispatcher receives requests to execute functions from
39 // Chrome extensions running in a RenderViewHost and dispatches them to the 38 // Chrome extensions running in a RenderViewHost and dispatches them to the
40 // appropriate handler. It lives entirely on the UI thread. 39 // appropriate handler. It lives entirely on the UI thread.
41 // 40 //
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 119
121 private: 120 private:
122 // Helper to create an ExtensionFunction to handle the function given by 121 // Helper to create an ExtensionFunction to handle the function given by
123 // |params|. Can be called on any thread. 122 // |params|. Can be called on any thread.
124 // Does not set subclass properties, or include_incognito. 123 // Does not set subclass properties, or include_incognito.
125 static ExtensionFunction* CreateExtensionFunction( 124 static ExtensionFunction* CreateExtensionFunction(
126 const ExtensionHostMsg_Request_Params& params, 125 const ExtensionHostMsg_Request_Params& params,
127 const Extension* extension, 126 const Extension* extension,
128 int requesting_process_id, 127 int requesting_process_id,
129 const extensions::ProcessMap& process_map, 128 const extensions::ProcessMap& process_map,
130 extensions::ExtensionAPI* api,
131 void* profile, 129 void* profile,
132 IPC::Message::Sender* ipc_sender, 130 IPC::Message::Sender* ipc_sender,
133 int routing_id); 131 int routing_id);
134 132
135 // Helper to send an access denied error to the requesting renderer. Can be 133 // Helper to send an access denied error to the requesting renderer. Can be
136 // called on any thread. 134 // called on any thread.
137 static void SendAccessDenied(IPC::Message::Sender* ipc_sender, 135 static void SendAccessDenied(IPC::Message::Sender* ipc_sender,
138 int routing_id, 136 int routing_id,
139 int request_id); 137 int request_id);
140 138
141 Profile* profile_; 139 Profile* profile_;
142 140
143 Delegate* delegate_; 141 Delegate* delegate_;
144 }; 142 };
145 143
146 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ 144 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_event_router.cc ('k') | chrome/browser/extensions/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698