| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_ | 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_ |
| 6 #define EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_ | 6 #define EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // Includes additional native handlers in a ScriptContext's ModuleSystem. | 29 // Includes additional native handlers in a ScriptContext's ModuleSystem. |
| 30 virtual void RegisterNativeHandlers(Dispatcher* dispatcher, | 30 virtual void RegisterNativeHandlers(Dispatcher* dispatcher, |
| 31 ModuleSystem* module_system, | 31 ModuleSystem* module_system, |
| 32 ScriptContext* context) {} | 32 ScriptContext* context) {} |
| 33 | 33 |
| 34 // Includes additional source resources into the resource map. | 34 // Includes additional source resources into the resource map. |
| 35 virtual void PopulateSourceMap(ResourceBundleSourceMap* source_map) {} | 35 virtual void PopulateSourceMap(ResourceBundleSourceMap* source_map) {} |
| 36 | 36 |
| 37 // Requires additional modules within an extension context's module system. | 37 // Requires additional modules within an extension context's module system. |
| 38 virtual void RequireAdditionalModules(ScriptContext* context, | 38 virtual void RequireAdditionalModules(ScriptContext* context) {} |
| 39 bool is_within_platform_app) {} | |
| 40 | 39 |
| 41 // Allows the delegate to respond to an updated set of active extensions in | 40 // Allows the delegate to respond to an updated set of active extensions in |
| 42 // the Dispatcher. | 41 // the Dispatcher. |
| 43 virtual void OnActiveExtensionsUpdated( | 42 virtual void OnActiveExtensionsUpdated( |
| 44 const std::set<std::string>& extension_ids) {} | 43 const std::set<std::string>& extension_ids) {} |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 } // namespace extensions | 46 } // namespace extensions |
| 48 | 47 |
| 49 #endif // EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_ | 48 #endif // EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_ |
| OLD | NEW |