| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 static const char* const kHostedAppPermissionNames[]; | 162 static const char* const kHostedAppPermissionNames[]; |
| 163 static const size_t kNumHostedAppPermissions; | 163 static const size_t kNumHostedAppPermissions; |
| 164 | 164 |
| 165 // The old name for the unlimited storage permission, which is deprecated but | 165 // The old name for the unlimited storage permission, which is deprecated but |
| 166 // still accepted as meaning the same thing as kUnlimitedStoragePermission. | 166 // still accepted as meaning the same thing as kUnlimitedStoragePermission. |
| 167 static const char kOldUnlimitedStoragePermission[]; | 167 static const char kOldUnlimitedStoragePermission[]; |
| 168 | 168 |
| 169 // Valid schemes for web extent URLPatterns. | 169 // Valid schemes for web extent URLPatterns. |
| 170 static const int kValidWebExtentSchemes; | 170 static const int kValidWebExtentSchemes; |
| 171 | 171 |
| 172 // Valid schemes for host permission URLPatterns. |
| 173 static const int kValidHostPermissionSchemes; |
| 174 |
| 172 // Returns true if the string is one of the known hosted app permissions (see | 175 // Returns true if the string is one of the known hosted app permissions (see |
| 173 // kHostedAppPermissionNames). | 176 // kHostedAppPermissionNames). |
| 174 static bool IsHostedAppPermission(const std::string& permission); | 177 static bool IsHostedAppPermission(const std::string& permission); |
| 175 | 178 |
| 176 // The name of the manifest inside an extension. | 179 // The name of the manifest inside an extension. |
| 177 static const FilePath::CharType kManifestFilename[]; | 180 static const FilePath::CharType kManifestFilename[]; |
| 178 | 181 |
| 179 // The name of locale folder inside an extension. | 182 // The name of locale folder inside an extension. |
| 180 static const FilePath::CharType kLocaleFolder[]; | 183 static const FilePath::CharType kLocaleFolder[]; |
| 181 | 184 |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 std::set<std::string> extension_api_permissions; | 708 std::set<std::string> extension_api_permissions; |
| 706 // TODO(akalin): Once we have a unified ExtensionType, replace the | 709 // TODO(akalin): Once we have a unified ExtensionType, replace the |
| 707 // below member variables with a member of that type. | 710 // below member variables with a member of that type. |
| 708 bool is_theme; | 711 bool is_theme; |
| 709 bool is_app; | 712 bool is_app; |
| 710 bool converted_from_user_script; | 713 bool converted_from_user_script; |
| 711 GURL update_url; | 714 GURL update_url; |
| 712 }; | 715 }; |
| 713 | 716 |
| 714 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 717 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |