| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_API_BINDING_HOOKS_DELEGATE_H_ | 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_DELEGATE_H_ |
| 6 #define EXTENSIONS_RENDERER_API_BINDING_HOOKS_DELEGATE_H_ | 6 #define EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "extensions/renderer/api_binding_hooks.h" | 8 #include "extensions/renderer/bindings/api_binding_hooks.h" |
| 9 #include "extensions/renderer/api_binding_types.h" | 9 #include "extensions/renderer/bindings/api_binding_types.h" |
| 10 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 class APITypeReferenceMap; | 13 class APITypeReferenceMap; |
| 14 | 14 |
| 15 // A per-API set of custom hooks to override the default behavior. | 15 // A per-API set of custom hooks to override the default behavior. |
| 16 class APIBindingHooksDelegate { | 16 class APIBindingHooksDelegate { |
| 17 public: | 17 public: |
| 18 virtual ~APIBindingHooksDelegate(); | 18 virtual ~APIBindingHooksDelegate(); |
| 19 | 19 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Allows custom implementations to add additional properties or types to an | 36 // Allows custom implementations to add additional properties or types to an |
| 37 // API object. | 37 // API object. |
| 38 virtual void InitializeTemplate(v8::Isolate* isolate, | 38 virtual void InitializeTemplate(v8::Isolate* isolate, |
| 39 v8::Local<v8::ObjectTemplate> object_template, | 39 v8::Local<v8::ObjectTemplate> object_template, |
| 40 const APITypeReferenceMap& type_refs) {} | 40 const APITypeReferenceMap& type_refs) {} |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace extensions | 43 } // namespace extensions |
| 44 | 44 |
| 45 #endif // EXTENSIONS_RENDERER_API_BINDING_HOOKS_DELEGATE_H_ | 45 #endif // EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_DELEGATE_H_ |
| OLD | NEW |