| 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_RENDERER_EXTENSIONS_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 // Sets up the host permissions for |extension|. | 179 // Sets up the host permissions for |extension|. |
| 180 void InitOriginPermissions(const Extension* extension); | 180 void InitOriginPermissions(const Extension* extension); |
| 181 void AddOrRemoveOriginPermissions( | 181 void AddOrRemoveOriginPermissions( |
| 182 UpdatedExtensionPermissionsInfo::Reason reason, | 182 UpdatedExtensionPermissionsInfo::Reason reason, |
| 183 const Extension* extension, | 183 const Extension* extension, |
| 184 const URLPatternSet& origins); | 184 const URLPatternSet& origins); |
| 185 | 185 |
| 186 void RegisterNativeHandlers(ModuleSystem* module_system, | 186 void RegisterNativeHandlers(ModuleSystem* module_system, |
| 187 ChromeV8Context* context); | 187 ChromeV8Context* context); |
| 188 void RegisterSchemaGeneratedBindings(ModuleSystem* module_system, |
| 189 ChromeV8Context* context, |
| 190 v8::Handle<v8::Context> v8_context, |
| 191 Feature::Context feature_context); |
| 188 | 192 |
| 189 // Inserts static source code into |source_map_|. | 193 // Inserts static source code into |source_map_|. |
| 190 void PopulateSourceMap(); | 194 void PopulateSourceMap(); |
| 191 | 195 |
| 192 // Inserts BindingInstallers into |lazy_bindings_map_|. | 196 // Inserts BindingInstallers into |lazy_bindings_map_|. |
| 193 void PopulateLazyBindingsMap(); | 197 void PopulateLazyBindingsMap(); |
| 194 | 198 |
| 195 // Sets up the bindings for the given api. | 199 // Sets up the bindings for the given api. |
| 196 void InstallBindings(ModuleSystem* module_system, | 200 void InstallBindings(ModuleSystem* module_system, |
| 197 v8::Handle<v8::Context> v8_context, | 201 v8::Handle<v8::Context> v8_context, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 255 |
| 252 // Sends API requests to the extension host. | 256 // Sends API requests to the extension host. |
| 253 scoped_ptr<RequestSender> request_sender_; | 257 scoped_ptr<RequestSender> request_sender_; |
| 254 | 258 |
| 255 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 259 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 256 }; | 260 }; |
| 257 | 261 |
| 258 } // namespace extensions | 262 } // namespace extensions |
| 259 | 263 |
| 260 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 264 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
| OLD | NEW |