| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // Update the list of active extensions that will be reported when we crash. | 193 // Update the list of active extensions that will be reported when we crash. |
| 194 void UpdateActiveExtensions(); | 194 void UpdateActiveExtensions(); |
| 195 | 195 |
| 196 // Sets up the host permissions for |extension|. | 196 // Sets up the host permissions for |extension|. |
| 197 void InitOriginPermissions(const Extension* extension); | 197 void InitOriginPermissions(const Extension* extension); |
| 198 void AddOrRemoveOriginPermissions( | 198 void AddOrRemoveOriginPermissions( |
| 199 UpdatedExtensionPermissionsInfo::Reason reason, | 199 UpdatedExtensionPermissionsInfo::Reason reason, |
| 200 const Extension* extension, | 200 const Extension* extension, |
| 201 const URLPatternSet& origins); | 201 const URLPatternSet& origins); |
| 202 | 202 |
| 203 // Enable custom element whitelist in Apps. |
| 204 void EnableCustomElementWhiteList(); |
| 205 |
| 203 // Adds or removes bindings for every context belonging to |extension_id|, or | 206 // Adds or removes bindings for every context belonging to |extension_id|, or |
| 204 // or all contexts if |extension_id| is empty. | 207 // or all contexts if |extension_id| is empty. |
| 205 void AddOrRemoveBindings(const std::string& extension_id); | 208 void AddOrRemoveBindings(const std::string& extension_id); |
| 206 | 209 |
| 207 void RegisterNativeHandlers(ModuleSystem* module_system, | 210 void RegisterNativeHandlers(ModuleSystem* module_system, |
| 208 ChromeV8Context* context); | 211 ChromeV8Context* context); |
| 209 void AddOrRemoveBindingsForContext(ChromeV8Context* context); | 212 void AddOrRemoveBindingsForContext(ChromeV8Context* context); |
| 210 void RegisterBinding(const std::string& api_name, | 213 void RegisterBinding(const std::string& api_name, |
| 211 ChromeV8Context* context); | 214 ChromeV8Context* context); |
| 212 void DeregisterBinding(const std::string& api_name, ChromeV8Context* context); | 215 void DeregisterBinding(const std::string& api_name, ChromeV8Context* context); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 // The platforms system font family and size; | 302 // The platforms system font family and size; |
| 300 std::string system_font_family_; | 303 std::string system_font_family_; |
| 301 std::string system_font_size_; | 304 std::string system_font_size_; |
| 302 | 305 |
| 303 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 306 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 304 }; | 307 }; |
| 305 | 308 |
| 306 } // namespace extensions | 309 } // namespace extensions |
| 307 | 310 |
| 308 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 311 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
| OLD | NEW |