| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/module_system.h" | 5 #include "extensions/renderer/module_system.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/trace_event.h" | |
| 10 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 11 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 12 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/trace_event/trace_event.h" |
| 13 #include "content/public/renderer/render_frame.h" | 13 #include "content/public/renderer/render_frame.h" |
| 14 #include "content/public/renderer/render_view.h" | 14 #include "content/public/renderer/render_view.h" |
| 15 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
| 16 #include "extensions/common/extensions_client.h" | 16 #include "extensions/common/extensions_client.h" |
| 17 #include "extensions/renderer/console.h" | 17 #include "extensions/renderer/console.h" |
| 18 #include "extensions/renderer/safe_builtins.h" | 18 #include "extensions/renderer/safe_builtins.h" |
| 19 #include "extensions/renderer/script_context.h" | 19 #include "extensions/renderer/script_context.h" |
| 20 #include "gin/modules/module_registry.h" | 20 #include "gin/modules/module_registry.h" |
| 21 #include "third_party/WebKit/public/web/WebFrame.h" | 21 #include "third_party/WebKit/public/web/WebFrame.h" |
| 22 #include "third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h" | 22 #include "third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h" |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 v8::Handle<v8::Value> value) { | 680 v8::Handle<v8::Value> value) { |
| 681 if (!is_valid()) | 681 if (!is_valid()) |
| 682 return; | 682 return; |
| 683 v8::HandleScope handle_scope(GetIsolate()); | 683 v8::HandleScope handle_scope(GetIsolate()); |
| 684 v8::Handle<v8::Promise::Resolver> resolver_local( | 684 v8::Handle<v8::Promise::Resolver> resolver_local( |
| 685 v8::Local<v8::Promise::Resolver>::New(GetIsolate(), *resolver)); | 685 v8::Local<v8::Promise::Resolver>::New(GetIsolate(), *resolver)); |
| 686 resolver_local->Resolve(value); | 686 resolver_local->Resolve(value); |
| 687 } | 687 } |
| 688 | 688 |
| 689 } // namespace extensions | 689 } // namespace extensions |
| OLD | NEW |