OLD | NEW |
1 // Copyright (c) 2011 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); | 304 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); |
305 | 305 |
306 // Return the update URL used by gallery/webstore extensions/apps. The | 306 // Return the update URL used by gallery/webstore extensions/apps. The |
307 // |secure| parameter will be ignored if the update URL is overriden with | 307 // |secure| parameter will be ignored if the update URL is overriden with |
308 // --apps-gallery-update-url. | 308 // --apps-gallery-update-url. |
309 GURL GetWebstoreUpdateUrl(bool secure); | 309 GURL GetWebstoreUpdateUrl(bool secure); |
310 | 310 |
311 // Returns whether the URL is the webstore update URL (secure or not). | 311 // Returns whether the URL is the webstore update URL (secure or not). |
312 bool IsWebstoreUpdateUrl(const GURL& update_url); | 312 bool IsWebstoreUpdateUrl(const GURL& update_url); |
313 | 313 |
| 314 // Returns true if the URL points to an extension blacklist. |
| 315 bool IsBlacklistUpdateUrl(const GURL& url); |
| 316 |
314 // The greatest common prefixes of the main extensions gallery's browse and | 317 // The greatest common prefixes of the main extensions gallery's browse and |
315 // download URLs. | 318 // download URLs. |
316 extern const char kGalleryBrowsePrefix[]; | 319 extern const char kGalleryBrowsePrefix[]; |
317 } // namespace extension_urls | 320 } // namespace extension_urls |
318 | 321 |
319 namespace extension_filenames { | 322 namespace extension_filenames { |
320 // The name of a temporary directory to install an extension into for | 323 // The name of a temporary directory to install an extension into for |
321 // validation before finalizing install. | 324 // validation before finalizing install. |
322 extern const char kTempExtensionName[]; | 325 extern const char kTempExtensionName[]; |
323 | 326 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 | 459 |
457 enum UnloadedExtensionReason { | 460 enum UnloadedExtensionReason { |
458 UNLOAD_REASON_DISABLE, // Extension is being disabled. | 461 UNLOAD_REASON_DISABLE, // Extension is being disabled. |
459 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. | 462 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. |
460 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. | 463 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. |
461 UNLOAD_REASON_TERMINATE, // Extension has terminated. | 464 UNLOAD_REASON_TERMINATE, // Extension has terminated. |
462 }; | 465 }; |
463 } // extension_misc | 466 } // extension_misc |
464 | 467 |
465 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 468 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
OLD | NEW |