OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "apps/shell/common/shell_extensions_client.h" | 5 #include "apps/shell/common/shell_extensions_client.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/common/extensions/api/generated_schemas.h" | 8 #include "chrome/common/extensions/api/generated_schemas.h" |
9 #include "chrome/common/extensions/api/sockets/sockets_manifest_handler.h" | |
10 #include "chrome/common/extensions/features/base_feature_provider.h" | 9 #include "chrome/common/extensions/features/base_feature_provider.h" |
11 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" | 10 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" |
12 #include "extensions/common/api/generated_schemas.h" | 11 #include "extensions/common/api/generated_schemas.h" |
| 12 #include "extensions/common/api/sockets/sockets_manifest_handler.h" |
13 #include "extensions/common/common_manifest_handlers.h" | 13 #include "extensions/common/common_manifest_handlers.h" |
14 #include "extensions/common/manifest_handler.h" | 14 #include "extensions/common/manifest_handler.h" |
15 #include "extensions/common/permissions/permission_message_provider.h" | 15 #include "extensions/common/permissions/permission_message_provider.h" |
16 #include "extensions/common/permissions/permissions_provider.h" | 16 #include "extensions/common/permissions/permissions_provider.h" |
17 #include "extensions/common/url_pattern_set.h" | 17 #include "extensions/common/url_pattern_set.h" |
18 | 18 |
19 using extensions::APIPermissionInfo; | 19 using extensions::APIPermissionInfo; |
20 using extensions::APIPermissionSet; | 20 using extensions::APIPermissionSet; |
21 using extensions::Extension; | 21 using extensions::Extension; |
22 using extensions::Manifest; | 22 using extensions::Manifest; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 base::StringPiece ShellExtensionsClient::GetAPISchema( | 161 base::StringPiece ShellExtensionsClient::GetAPISchema( |
162 const std::string& name) const { | 162 const std::string& name) const { |
163 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs | 163 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs |
164 // moved out. See http://crbug.com/349042. | 164 // moved out. See http://crbug.com/349042. |
165 if (extensions::api::GeneratedSchemas::IsGenerated(name)) | 165 if (extensions::api::GeneratedSchemas::IsGenerated(name)) |
166 return extensions::api::GeneratedSchemas::Get(name); | 166 return extensions::api::GeneratedSchemas::Get(name); |
167 return extensions::core_api::GeneratedSchemas::Get(name); | 167 return extensions::core_api::GeneratedSchemas::Get(name); |
168 } | 168 } |
169 | 169 |
170 } // namespace apps | 170 } // namespace apps |
OLD | NEW |