| 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_hooks.h" | 5 #include "extensions/renderer/bindings/api_binding_hooks.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
| 10 #include "extensions/renderer/api_binding_hooks_delegate.h" | 10 #include "extensions/renderer/bindings/api_binding_hooks_delegate.h" |
| 11 #include "extensions/renderer/api_signature.h" | 11 #include "extensions/renderer/bindings/api_signature.h" |
| 12 #include "gin/arguments.h" | 12 #include "gin/arguments.h" |
| 13 #include "gin/handle.h" | 13 #include "gin/handle.h" |
| 14 #include "gin/object_template_builder.h" | 14 #include "gin/object_template_builder.h" |
| 15 #include "gin/per_context_data.h" | 15 #include "gin/per_context_data.h" |
| 16 #include "gin/wrappable.h" | 16 #include "gin/wrappable.h" |
| 17 | 17 |
| 18 namespace extensions { | 18 namespace extensions { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 if (result.IsEmpty() || | 368 if (result.IsEmpty() || |
| 369 !gin::Converter<std::vector<v8::Local<v8::Value>>>::FromV8( | 369 !gin::Converter<std::vector<v8::Local<v8::Value>>>::FromV8( |
| 370 context->GetIsolate(), result, &new_args)) { | 370 context->GetIsolate(), result, &new_args)) { |
| 371 return false; | 371 return false; |
| 372 } | 372 } |
| 373 arguments->swap(new_args); | 373 arguments->swap(new_args); |
| 374 return true; | 374 return true; |
| 375 } | 375 } |
| 376 | 376 |
| 377 } // namespace extensions | 377 } // namespace extensions |
| OLD | NEW |