| 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 #include "extensions/renderer/declarative_content_hooks_delegate.h" | 5 #include "extensions/renderer/declarative_content_hooks_delegate.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "extensions/common/api/declarative/declarative_constants.h" | 9 #include "extensions/common/api/declarative/declarative_constants.h" |
| 10 #include "extensions/renderer/api_type_reference_map.h" | 10 #include "extensions/renderer/bindings/api_type_reference_map.h" |
| 11 #include "extensions/renderer/argument_spec.h" | 11 #include "extensions/renderer/bindings/argument_spec.h" |
| 12 #include "gin/arguments.h" | 12 #include "gin/arguments.h" |
| 13 #include "gin/converter.h" | 13 #include "gin/converter.h" |
| 14 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
| 15 #include "third_party/WebKit/public/web/WebSelector.h" | 15 #include "third_party/WebKit/public/web/WebSelector.h" |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 void CallbackHelper(const v8::FunctionCallbackInfo<v8::Value>& info) { | 21 void CallbackHelper(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 try_catch.ReThrow(); | 237 try_catch.ReThrow(); |
| 238 return; | 238 return; |
| 239 } | 239 } |
| 240 } | 240 } |
| 241 | 241 |
| 242 if (!success) | 242 if (!success) |
| 243 arguments.ThrowTypeError("Invalid invocation: " + error); | 243 arguments.ThrowTypeError("Invalid invocation: " + error); |
| 244 } | 244 } |
| 245 | 245 |
| 246 } // namespace extensions | 246 } // namespace extensions |
| OLD | NEW |