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 |
48 kBrandFileTypeNotDetermined = 0, | 48 enum BrandFileType { |
49 kBrandFileTypeNone, | 49 kBrandFileTypeNotDetermined = 0, |
50 kBrandFileTypeUser, | 50 kBrandFileTypeNone, |
51 kBrandFileTypeSystem, | 51 kBrandFileTypeUser, |
52 }; | 52 kBrandFileTypeSystem, |
| 53 }; |
53 | 54 |
54 } // namespace | 55 } // namespace |
55 | 56 |
56 // KeystoneGlue is an adapter around the KSRegistration class, allowing it to | 57 // KeystoneGlue is an adapter around the KSRegistration class, allowing it to |
57 // be used without linking directly against its containing KeystoneRegistration | 58 // be used without linking directly against its containing KeystoneRegistration |
58 // framework. This is used in an environment where most builds (such as | 59 // framework. This is used in an environment where most builds (such as |
59 // developer builds) don't want or need Keystone support and might not even | 60 // developer builds) don't want or need Keystone support and might not even |
60 // have the framework available. Enabling Keystone support in an application | 61 // have the framework available. Enabling Keystone support in an application |
61 // that uses KeystoneGlue is as simple as dropping | 62 // that uses KeystoneGlue is as simple as dropping |
62 // KeystoneRegistration.framework in the application's Frameworks directory | 63 // KeystoneRegistration.framework in the application's Frameworks directory |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 182 |
182 // Called when a checkForUpdate: notification completes. | 183 // Called when a checkForUpdate: notification completes. |
183 - (void)checkForUpdateComplete:(NSNotification*)notification; | 184 - (void)checkForUpdateComplete:(NSNotification*)notification; |
184 | 185 |
185 // Called when an installUpdate: notification completes. | 186 // Called when an installUpdate: notification completes. |
186 - (void)installUpdateComplete:(NSNotification*)notification; | 187 - (void)installUpdateComplete:(NSNotification*)notification; |
187 | 188 |
188 @end // @interface KeystoneGlue(ExposedForTesting) | 189 @end // @interface KeystoneGlue(ExposedForTesting) |
189 | 190 |
190 #endif // CHROME_BROWSER_COCOA_KEYSTONE_GLUE_H_ | 191 #endif // CHROME_BROWSER_COCOA_KEYSTONE_GLUE_H_ |
OLD | NEW |