| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // Sets up the host permissions for |extension|. | 186 // Sets up the host permissions for |extension|. |
| 187 void InitOriginPermissions(const Extension* extension); | 187 void InitOriginPermissions(const Extension* extension); |
| 188 void AddOrRemoveOriginPermissions( | 188 void AddOrRemoveOriginPermissions( |
| 189 UpdatedExtensionPermissionsInfo::Reason reason, | 189 UpdatedExtensionPermissionsInfo::Reason reason, |
| 190 const Extension* extension, | 190 const Extension* extension, |
| 191 const URLPatternSet& origins); | 191 const URLPatternSet& origins); |
| 192 | 192 |
| 193 void RegisterNativeHandlers(ModuleSystem* module_system, | 193 void RegisterNativeHandlers(ModuleSystem* module_system, |
| 194 ChromeV8Context* context); | 194 ChromeV8Context* context); |
| 195 void RegisterSchemaGeneratedBindings(ModuleSystem* module_system, | 195 void RegisterSchemaGeneratedBindings(ModuleSystem* module_system, |
| 196 ChromeV8Context* context); | 196 ChromeV8Context* context, |
| 197 v8::Handle<v8::Context> v8_context); |
| 197 | 198 |
| 198 // Inserts static source code into |source_map_|. | 199 // Inserts static source code into |source_map_|. |
| 199 void PopulateSourceMap(); | 200 void PopulateSourceMap(); |
| 200 | 201 |
| 201 // Inserts BindingInstallers into |lazy_bindings_map_|. | 202 // Inserts BindingInstallers into |lazy_bindings_map_|. |
| 202 void PopulateLazyBindingsMap(); | 203 void PopulateLazyBindingsMap(); |
| 203 | 204 |
| 204 // Sets up the bindings for the given api. | 205 // Sets up the bindings for the given api. |
| 205 void InstallBindings(ModuleSystem* module_system, | 206 void InstallBindings(ModuleSystem* module_system, |
| 206 v8::Handle<v8::Context> v8_context, | 207 v8::Handle<v8::Context> v8_context, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 268 |
| 268 // Sends API requests to the extension host. | 269 // Sends API requests to the extension host. |
| 269 scoped_ptr<RequestSender> request_sender_; | 270 scoped_ptr<RequestSender> request_sender_; |
| 270 | 271 |
| 271 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 272 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 272 }; | 273 }; |
| 273 | 274 |
| 274 } // namespace extensions | 275 } // namespace extensions |
| 275 | 276 |
| 276 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 277 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
| OLD | NEW |