| 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_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_ | 5 #ifndef EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_ |
| 6 #define EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_ | 6 #define EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "extensions/renderer/api_binding_hooks_delegate.h" | 13 #include "extensions/renderer/bindings/api_binding_hooks_delegate.h" |
| 14 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 class APITypeReferenceMap; | 17 class APITypeReferenceMap; |
| 18 class ArgumentSpec; | 18 class ArgumentSpec; |
| 19 | 19 |
| 20 // Custom hooks for the declarativeContent API. | 20 // Custom hooks for the declarativeContent API. |
| 21 class DeclarativeContentHooksDelegate : public APIBindingHooksDelegate { | 21 class DeclarativeContentHooksDelegate : public APIBindingHooksDelegate { |
| 22 public: | 22 public: |
| 23 // The callback type for handling an API call. | 23 // The callback type for handling an API call. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 // are passed to v8::External, we need to use unique_ptrs rather than just | 41 // are passed to v8::External, we need to use unique_ptrs rather than just |
| 42 // storing the callback directly in a vector. | 42 // storing the callback directly in a vector. |
| 43 std::vector<std::unique_ptr<HandlerCallback>> callbacks_; | 43 std::vector<std::unique_ptr<HandlerCallback>> callbacks_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(DeclarativeContentHooksDelegate); | 45 DISALLOW_COPY_AND_ASSIGN(DeclarativeContentHooksDelegate); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace extensions | 48 } // namespace extensions |
| 49 | 49 |
| 50 #endif // EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_ | 50 #endif // EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_ |
| OLD | NEW |