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" | 9 #include "base/debug/trace_event.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "content/public/renderer/render_view.h" | 13 #include "content/public/renderer/render_view.h" |
14 #include "extensions/common/extension_messages.h" | 14 #include "extensions/common/extension.h" |
15 #include "extensions/common/extensions_client.h" | 15 #include "extensions/common/extensions_client.h" |
16 #include "extensions/renderer/console.h" | 16 #include "extensions/renderer/console.h" |
17 #include "extensions/renderer/safe_builtins.h" | 17 #include "extensions/renderer/safe_builtins.h" |
18 #include "extensions/renderer/script_context.h" | 18 #include "extensions/renderer/script_context.h" |
19 #include "gin/modules/module_registry.h" | 19 #include "gin/modules/module_registry.h" |
20 #include "third_party/WebKit/public/web/WebFrame.h" | 20 #include "third_party/WebKit/public/web/WebFrame.h" |
21 #include "third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h" | 21 #include "third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h" |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 | 24 |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 v8::Handle<v8::Value> value) { | 661 v8::Handle<v8::Value> value) { |
662 if (!is_valid()) | 662 if (!is_valid()) |
663 return; | 663 return; |
664 v8::HandleScope handle_scope(GetIsolate()); | 664 v8::HandleScope handle_scope(GetIsolate()); |
665 v8::Handle<v8::Promise::Resolver> resolver_local( | 665 v8::Handle<v8::Promise::Resolver> resolver_local( |
666 v8::Local<v8::Promise::Resolver>::New(GetIsolate(), *resolver)); | 666 v8::Local<v8::Promise::Resolver>::New(GetIsolate(), *resolver)); |
667 resolver_local->Resolve(value); | 667 resolver_local->Resolve(value); |
668 } | 668 } |
669 | 669 |
670 } // namespace extensions | 670 } // namespace extensions |
OLD | NEW |