| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // In a few special circumstances, we want to create an Extension and give it | 201 // In a few special circumstances, we want to create an Extension and give it |
| 202 // an explicit id. Most consumers should just use the plain Create() method. | 202 // an explicit id. Most consumers should just use the plain Create() method. |
| 203 static scoped_refptr<Extension> CreateWithId( | 203 static scoped_refptr<Extension> CreateWithId( |
| 204 const FilePath& path, | 204 const FilePath& path, |
| 205 Location location, | 205 Location location, |
| 206 const base::DictionaryValue& value, | 206 const base::DictionaryValue& value, |
| 207 int flags, | 207 int flags, |
| 208 const std::string& explicit_id, | 208 const std::string& explicit_id, |
| 209 std::string* error); | 209 std::string* error); |
| 210 | 210 |
| 211 // Return the update url used by gallery/webstore extensions. | |
| 212 static GURL GalleryUpdateUrl(bool secure); | |
| 213 | |
| 214 // Given two install sources, return the one which should take priority | 211 // Given two install sources, return the one which should take priority |
| 215 // over the other. If an extension is installed from two sources A and B, | 212 // over the other. If an extension is installed from two sources A and B, |
| 216 // its install source should be set to GetHigherPriorityLocation(A, B). | 213 // its install source should be set to GetHigherPriorityLocation(A, B). |
| 217 static Location GetHigherPriorityLocation(Location loc1, Location loc2); | 214 static Location GetHigherPriorityLocation(Location loc1, Location loc2); |
| 218 | 215 |
| 219 // Icon sizes used by the extension system. | 216 // Icon sizes used by the extension system. |
| 220 static const int kIconSizes[]; | 217 static const int kIconSizes[]; |
| 221 | 218 |
| 222 // Max size (both dimensions) for browser and page actions. | 219 // Max size (both dimensions) for browser and page actions. |
| 223 static const int kPageActionIconMaxSize; | 220 static const int kPageActionIconMaxSize; |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 // only contain the removed permissions. | 931 // only contain the removed permissions. |
| 935 const ExtensionPermissionSet* permissions; | 932 const ExtensionPermissionSet* permissions; |
| 936 | 933 |
| 937 UpdatedExtensionPermissionsInfo( | 934 UpdatedExtensionPermissionsInfo( |
| 938 const Extension* extension, | 935 const Extension* extension, |
| 939 const ExtensionPermissionSet* permissions, | 936 const ExtensionPermissionSet* permissions, |
| 940 Reason reason); | 937 Reason reason); |
| 941 }; | 938 }; |
| 942 | 939 |
| 943 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 940 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |