| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_KEYSTONE_GLUE_H_ | 5 #ifndef CHROME_BROWSER_COCOA_KEYSTONE_GLUE_H_ |
| 6 #define CHROME_BROWSER_COCOA_KEYSTONE_GLUE_H_ | 6 #define CHROME_BROWSER_COCOA_KEYSTONE_GLUE_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #import <base/scoped_nsobject.h> | 9 #import <base/scoped_nsobject.h> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 kAutoupdatePromoteFailed, // no version | 32 kAutoupdatePromoteFailed, // no version |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 // kAutoupdateStatusNotification is the name of the notification posted when | 35 // kAutoupdateStatusNotification is the name of the notification posted when |
| 36 // -checkForUpdate and -installUpdate complete. This notification will be | 36 // -checkForUpdate and -installUpdate complete. This notification will be |
| 37 // sent with with its sender object set to the KeystoneGlue instance sending | 37 // sent with with its sender object set to the KeystoneGlue instance sending |
| 38 // the notification. Its userInfo dictionary will contain an AutoupdateStatus | 38 // the notification. Its userInfo dictionary will contain an AutoupdateStatus |
| 39 // value as an intValue at key kAutoupdateStatusStatus. If a version is | 39 // value as an intValue at key kAutoupdateStatusStatus. If a version is |
| 40 // available (see AutoupdateStatus), it will be present at key | 40 // available (see AutoupdateStatus), it will be present at key |
| 41 // kAutoupdateStatusVersion. | 41 // kAutoupdateStatusVersion. |
| 42 extern const NSString* const kAutoupdateStatusNotification; | 42 extern NSString* const kAutoupdateStatusNotification; |
| 43 extern const NSString* const kAutoupdateStatusStatus; | 43 extern NSString* const kAutoupdateStatusStatus; |
| 44 extern const NSString* const kAutoupdateStatusVersion; | 44 extern NSString* const kAutoupdateStatusVersion; |
| 45 | 45 |
| 46 namespace { | 46 namespace { |
| 47 enum BrandFileType { | 47 enum BrandFileType { |
| 48 kBrandFileTypeNotDetermined = 0, | 48 kBrandFileTypeNotDetermined = 0, |
| 49 kBrandFileTypeNone, | 49 kBrandFileTypeNone, |
| 50 kBrandFileTypeUser, | 50 kBrandFileTypeUser, |
| 51 kBrandFileTypeSystem, | 51 kBrandFileTypeSystem, |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace | 54 } // namespace |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 // Called when a checkForUpdate: notification completes. | 182 // Called when a checkForUpdate: notification completes. |
| 183 - (void)checkForUpdateComplete:(NSNotification*)notification; | 183 - (void)checkForUpdateComplete:(NSNotification*)notification; |
| 184 | 184 |
| 185 // Called when an installUpdate: notification completes. | 185 // Called when an installUpdate: notification completes. |
| 186 - (void)installUpdateComplete:(NSNotification*)notification; | 186 - (void)installUpdateComplete:(NSNotification*)notification; |
| 187 | 187 |
| 188 @end // @interface KeystoneGlue(ExposedForTesting) | 188 @end // @interface KeystoneGlue(ExposedForTesting) |
| 189 | 189 |
| 190 #endif // CHROME_BROWSER_COCOA_KEYSTONE_GLUE_H_ | 190 #endif // CHROME_BROWSER_COCOA_KEYSTONE_GLUE_H_ |
| OLD | NEW |