| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BRIDGE_H_ | 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_BINDING_BRIDGE_H_ |
| 6 #define EXTENSIONS_RENDERER_API_BINDING_BRIDGE_H_ | 6 #define EXTENSIONS_RENDERER_BINDINGS_API_BINDING_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "extensions/renderer/api_binding_types.h" | 11 #include "extensions/renderer/bindings/api_binding_types.h" |
| 12 #include "gin/wrappable.h" | 12 #include "gin/wrappable.h" |
| 13 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 class APIBindingHooks; | 16 class APIBindingHooks; |
| 17 | 17 |
| 18 // An object that serves as a bridge between the current JS-centric bindings and | 18 // An object that serves as a bridge between the current JS-centric bindings and |
| 19 // the new native bindings system. This basically needs to conform to the public | 19 // the new native bindings system. This basically needs to conform to the public |
| 20 // methods of the Binding prototype in binding.js. | 20 // methods of the Binding prototype in binding.js. |
| 21 class APIBindingBridge final : public gin::Wrappable<APIBindingBridge> { | 21 class APIBindingBridge final : public gin::Wrappable<APIBindingBridge> { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 std::string context_type_; | 53 std::string context_type_; |
| 54 | 54 |
| 55 // A function to run JS safely. | 55 // A function to run JS safely. |
| 56 binding::RunJSFunction run_js_; | 56 binding::RunJSFunction run_js_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(APIBindingBridge); | 58 DISALLOW_COPY_AND_ASSIGN(APIBindingBridge); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace extensions | 61 } // namespace extensions |
| 62 | 62 |
| 63 #endif // EXTENSIONS_RENDERER_API_BINDING_BRIDGE_H_ | 63 #endif // EXTENSIONS_RENDERER_BINDINGS_API_BINDING_BRIDGE_H_ |
| OLD | NEW |