| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ | 5 #ifndef CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ |
| 6 #define CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ | 6 #define CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 | 9 |
| 10 #if defined(__OBJC__) | 10 #if defined(__OBJC__) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 kAutoupdatePromoteFailed, // no version | 37 kAutoupdatePromoteFailed, // no version |
| 38 kAutoupdateNeedsPromotion, // no version | 38 kAutoupdateNeedsPromotion, // no version |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 // kAutoupdateStatusNotification is the name of the notification posted when | 41 // kAutoupdateStatusNotification is the name of the notification posted when |
| 42 // -checkForUpdate and -installUpdate complete. This notification will be | 42 // -checkForUpdate and -installUpdate complete. This notification will be |
| 43 // sent with with its sender object set to the KeystoneGlue instance sending | 43 // sent with with its sender object set to the KeystoneGlue instance sending |
| 44 // the notification. Its userInfo dictionary will contain an AutoupdateStatus | 44 // the notification. Its userInfo dictionary will contain an AutoupdateStatus |
| 45 // value as an intValue at key kAutoupdateStatusStatus. If a version is | 45 // value as an intValue at key kAutoupdateStatusStatus. If a version is |
| 46 // available (see AutoupdateStatus), it will be present at key | 46 // available (see AutoupdateStatus), it will be present at key |
| 47 // kAutoupdateStatusVersion. | 47 // kAutoupdateStatusVersion. If any error messages were supplied by Keystone, |
| 48 // they will be present at key kAutoupdateStatusErrorMessages. |
| 48 extern NSString* const kAutoupdateStatusNotification; | 49 extern NSString* const kAutoupdateStatusNotification; |
| 49 extern NSString* const kAutoupdateStatusStatus; | 50 extern NSString* const kAutoupdateStatusStatus; |
| 50 extern NSString* const kAutoupdateStatusVersion; | 51 extern NSString* const kAutoupdateStatusVersion; |
| 52 extern NSString* const kAutoupdateStatusErrorMessages; |
| 51 | 53 |
| 52 namespace { | 54 namespace { |
| 53 | 55 |
| 54 enum BrandFileType { | 56 enum BrandFileType { |
| 55 kBrandFileTypeNotDetermined = 0, | 57 kBrandFileTypeNotDetermined = 0, |
| 56 kBrandFileTypeNone, | 58 kBrandFileTypeNone, |
| 57 kBrandFileTypeUser, | 59 kBrandFileTypeUser, |
| 58 kBrandFileTypeSystem, | 60 kBrandFileTypeSystem, |
| 59 }; | 61 }; |
| 60 | 62 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 219 |
| 218 // True if Keystone is enabled. | 220 // True if Keystone is enabled. |
| 219 bool KeystoneEnabled(); | 221 bool KeystoneEnabled(); |
| 220 | 222 |
| 221 // The version of the application currently installed on disk. | 223 // The version of the application currently installed on disk. |
| 222 base::string16 CurrentlyInstalledVersion(); | 224 base::string16 CurrentlyInstalledVersion(); |
| 223 | 225 |
| 224 } // namespace keystone_glue | 226 } // namespace keystone_glue |
| 225 | 227 |
| 226 #endif // CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ | 228 #endif // CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ |
| OLD | NEW |