OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/renderer/extensions/module_system.h" | 5 #include "chrome/renderer/extensions/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 "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/extensions/extension_messages.h" | |
15 #include "chrome/common/extensions/features/feature_channel.h" | 14 #include "chrome/common/extensions/features/feature_channel.h" |
16 #include "chrome/renderer/extensions/chrome_v8_context.h" | 15 #include "chrome/renderer/extensions/chrome_v8_context.h" |
17 #include "chrome/renderer/extensions/console.h" | 16 #include "chrome/renderer/extensions/console.h" |
18 #include "chrome/renderer/extensions/safe_builtins.h" | 17 #include "chrome/renderer/extensions/safe_builtins.h" |
19 #include "content/public/renderer/render_view.h" | 18 #include "content/public/renderer/render_view.h" |
| 19 #include "extensions/common/extension_messages.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 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const char* kModuleSystem = "module_system"; | 27 const char* kModuleSystem = "module_system"; |
28 const char* kModuleName = "module_name"; | 28 const char* kModuleName = "module_name"; |
29 const char* kModuleField = "module_field"; | 29 const char* kModuleField = "module_field"; |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 v8::String::NewFromUtf8(GetIsolate(), "privates"); | 573 v8::String::NewFromUtf8(GetIsolate(), "privates"); |
574 v8::Local<v8::Value> privates = obj->GetHiddenValue(privates_key); | 574 v8::Local<v8::Value> privates = obj->GetHiddenValue(privates_key); |
575 if (privates.IsEmpty()) { | 575 if (privates.IsEmpty()) { |
576 privates = v8::Object::New(args.GetIsolate()); | 576 privates = v8::Object::New(args.GetIsolate()); |
577 obj->SetHiddenValue(privates_key, privates); | 577 obj->SetHiddenValue(privates_key, privates); |
578 } | 578 } |
579 args.GetReturnValue().Set(privates); | 579 args.GetReturnValue().Set(privates); |
580 } | 580 } |
581 | 581 |
582 } // namespace extensions | 582 } // namespace extensions |
OLD | NEW |