| 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 #include "extensions/renderer/api_binding_bridge.h" | 5 #include "extensions/renderer/bindings/api_binding_bridge.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "extensions/renderer/api_binding_hooks.h" | 8 #include "extensions/renderer/bindings/api_binding_hooks.h" |
| 9 #include "gin/converter.h" | 9 #include "gin/converter.h" |
| 10 #include "gin/object_template_builder.h" | 10 #include "gin/object_template_builder.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 const char kApiObjectKey[] = "extensions::bridge::api_object"; | 16 const char kApiObjectKey[] = "extensions::bridge::api_object"; |
| 17 const char kHookInterfaceKey[] = "extensions::bridge::hook_object"; | 17 const char kHookInterfaceKey[] = "extensions::bridge::hook_object"; |
| 18 | 18 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 v8::Local<v8::String> extension_id = | 97 v8::Local<v8::String> extension_id = |
| 98 gin::StringToSymbol(isolate, extension_id_); | 98 gin::StringToSymbol(isolate, extension_id_); |
| 99 v8::Local<v8::String> context_type = | 99 v8::Local<v8::String> context_type = |
| 100 gin::StringToSymbol(isolate, context_type_); | 100 gin::StringToSymbol(isolate, context_type_); |
| 101 v8::Local<v8::Value> args[] = {hook_object, extension_id, context_type}; | 101 v8::Local<v8::Value> args[] = {hook_object, extension_id, context_type}; |
| 102 run_js_.Run(function, context, arraysize(args), args); | 102 run_js_.Run(function, context, arraysize(args), args); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace extensions | 105 } // namespace extensions |
| OLD | NEW |