| 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_TEST_DELEGATE_H_ | 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_TEST_DELEGATE_H_ |
| 6 #define EXTENSIONS_RENDERER_API_BINDING_HOOKS_TEST_DELEGATE_H_ | 6 #define EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_TEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "extensions/renderer/api_binding_hooks_delegate.h" | 14 #include "extensions/renderer/bindings/api_binding_hooks_delegate.h" |
| 15 #include "extensions/renderer/api_binding_types.h" | 15 #include "extensions/renderer/bindings/api_binding_types.h" |
| 16 #include "v8/include/v8.h" | 16 #include "v8/include/v8.h" |
| 17 | 17 |
| 18 namespace extensions { | 18 namespace extensions { |
| 19 | 19 |
| 20 // A test class to simply adding custom events or handlers for API hooks. | 20 // A test class to simply adding custom events or handlers for API hooks. |
| 21 class APIBindingHooksTestDelegate : public APIBindingHooksDelegate { | 21 class APIBindingHooksTestDelegate : public APIBindingHooksDelegate { |
| 22 public: | 22 public: |
| 23 APIBindingHooksTestDelegate(); | 23 APIBindingHooksTestDelegate(); |
| 24 ~APIBindingHooksTestDelegate() override; | 24 ~APIBindingHooksTestDelegate() override; |
| 25 | 25 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 private: | 64 private: |
| 65 std::map<std::string, RequestHandler> request_handlers_; | 65 std::map<std::string, RequestHandler> request_handlers_; |
| 66 CustomEventFactory custom_event_; | 66 CustomEventFactory custom_event_; |
| 67 TemplateInitializer template_initializer_; | 67 TemplateInitializer template_initializer_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(APIBindingHooksTestDelegate); | 69 DISALLOW_COPY_AND_ASSIGN(APIBindingHooksTestDelegate); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace extensions | 72 } // namespace extensions |
| 73 | 73 |
| 74 #endif // EXTENSIONS_RENDERER_API_BINDING_HOOKS_TEST_DELEGATE_H_ | 74 #endif // EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_TEST_DELEGATE_H_ |
| OLD | NEW |