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

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

Issue 23257005: Move Feature and Manifest to top-level extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | chrome/utility/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/runtime_custom_bindings.h" 5 #include "chrome/renderer/extensions/runtime_custom_bindings.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "chrome/common/extensions/extension_messages.h" 11 #include "chrome/common/extensions/extension_messages.h"
12 #include "chrome/common/extensions/features/feature.h"
13 #include "chrome/common/extensions/manifest.h"
14 #include "chrome/renderer/extensions/api_activity_logger.h" 12 #include "chrome/renderer/extensions/api_activity_logger.h"
15 #include "chrome/renderer/extensions/chrome_v8_context.h" 13 #include "chrome/renderer/extensions/chrome_v8_context.h"
16 #include "chrome/renderer/extensions/dispatcher.h" 14 #include "chrome/renderer/extensions/dispatcher.h"
17 #include "content/public/renderer/render_view.h" 15 #include "content/public/renderer/render_view.h"
18 #include "content/public/renderer/v8_value_converter.h" 16 #include "content/public/renderer/v8_value_converter.h"
17 #include "extensions/common/features/feature.h"
19 #include "extensions/common/features/feature_provider.h" 18 #include "extensions/common/features/feature_provider.h"
19 #include "extensions/common/manifest.h"
20 #include "third_party/WebKit/public/web/WebDocument.h" 20 #include "third_party/WebKit/public/web/WebDocument.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/WebView.h" 22 #include "third_party/WebKit/public/web/WebView.h"
23 23
24 using content::V8ValueConverter; 24 using content::V8ValueConverter;
25 25
26 namespace extensions { 26 namespace extensions {
27 27
28 RuntimeCustomBindings::RuntimeCustomBindings(Dispatcher* dispatcher, 28 RuntimeCustomBindings::RuntimeCustomBindings(Dispatcher* dispatcher,
29 ChromeV8Context* context) 29 ChromeV8Context* context)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const v8::FunctionCallbackInfo<v8::Value>& args) { 103 const v8::FunctionCallbackInfo<v8::Value>& args) {
104 CHECK(context()->extension()); 104 CHECK(context()->extension());
105 105
106 scoped_ptr<V8ValueConverter> converter(V8ValueConverter::create()); 106 scoped_ptr<V8ValueConverter> converter(V8ValueConverter::create());
107 args.GetReturnValue().Set( 107 args.GetReturnValue().Set(
108 converter->ToV8Value(context()->extension()->manifest()->value(), 108 converter->ToV8Value(context()->extension()->manifest()->value(),
109 context()->v8_context())); 109 context()->v8_context()));
110 } 110 }
111 111
112 } // namespace extensions 112 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | chrome/utility/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698