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

Side by Side Diff: chrome/renderer/extensions/api_definitions_natives.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, 3 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/api_definitions_natives.h" 5 #include "chrome/renderer/extensions/api_definitions_natives.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "chrome/common/extensions/features/feature.h" 9 #include "extensions/common/features/feature.h"
10 #include "extensions/common/features/feature_provider.h" 10 #include "extensions/common/features/feature_provider.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 ApiDefinitionsNatives::ApiDefinitionsNatives(Dispatcher* dispatcher, 14 ApiDefinitionsNatives::ApiDefinitionsNatives(Dispatcher* dispatcher,
15 ChromeV8Context* context) 15 ChromeV8Context* context)
16 : ChromeV8Extension(dispatcher, context) { 16 : ChromeV8Extension(dispatcher, context) {
17 RouteFunction("GetExtensionAPIDefinitionsForTest", 17 RouteFunction("GetExtensionAPIDefinitionsForTest",
18 base::Bind( 18 base::Bind(
19 &ApiDefinitionsNatives::GetExtensionAPIDefinitionsForTest, 19 &ApiDefinitionsNatives::GetExtensionAPIDefinitionsForTest,
(...skipping 11 matching lines...) Expand all
31 if (!feature_provider->GetParent(feature_provider->GetFeature(*i)) && 31 if (!feature_provider->GetParent(feature_provider->GetFeature(*i)) &&
32 context()->GetAvailability(*i).is_available()) { 32 context()->GetAvailability(*i).is_available()) {
33 apis.push_back(*i); 33 apis.push_back(*i);
34 } 34 }
35 } 35 }
36 args.GetReturnValue().Set( 36 args.GetReturnValue().Set(
37 dispatcher()->v8_schema_registry()->GetSchemas(apis)); 37 dispatcher()->v8_schema_registry()->GetSchemas(apis));
38 } 38 }
39 39
40 } // namespace extensions 40 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/api_activity_logger.h ('k') | chrome/renderer/extensions/app_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698