Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: chrome/renderer/extensions/module_system.cc

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/messaging_bindings.cc ('k') | chrome/renderer/extensions/page_capture_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698