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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 // The authorization object, when it needs to persist because it's being | 94 // The authorization object, when it needs to persist because it's being |
95 // carried across threads. | 95 // carried across threads. |
96 base::mac::ScopedAuthorizationRef authorization_; | 96 base::mac::ScopedAuthorizationRef authorization_; |
97 | 97 |
98 // YES if a synchronous promotion operation is in progress (promotion during | 98 // YES if a synchronous promotion operation is in progress (promotion during |
99 // installation). | 99 // installation). |
100 BOOL synchronousPromotion_; | 100 BOOL synchronousPromotion_; |
101 | 101 |
102 // YES if an update was ever successfully installed by -installUpdate. | 102 // YES if an update was ever successfully installed by -installUpdate. |
103 BOOL updateSuccessfullyInstalled_; | 103 BOOL updateSuccessfullyInstalled_; |
104 | |
105 // Profile count information. | |
106 uint32_t numProfiles_; | |
107 uint32_t numSignedInProfiles_; | |
104 } | 108 } |
105 | 109 |
106 // Return the default Keystone Glue object. | 110 // Return the default Keystone Glue object. |
107 + (id)defaultKeystoneGlue; | 111 + (id)defaultKeystoneGlue; |
108 | 112 |
109 // Load KeystoneRegistration.framework if present, call into it to register | 113 // Load KeystoneRegistration.framework if present, call into it to register |
110 // with Keystone, and set up periodic activity pings. | 114 // with Keystone, and set up periodic activity pings. |
111 - (void)registerWithKeystone; | 115 - (void)registerWithKeystone; |
112 | 116 |
113 // -checkForUpdate launches a check for updates, and -installUpdate begins | 117 // -checkForUpdate launches a check for updates, and -installUpdate begins |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
165 synchronous:(BOOL)synchronous; | 169 synchronous:(BOOL)synchronous; |
166 | 170 |
167 // Requests authorization and calls -promoteTicketWithAuthorization: in | 171 // Requests authorization and calls -promoteTicketWithAuthorization: in |
168 // asynchronous mode. | 172 // asynchronous mode. |
169 - (void)promoteTicket; | 173 - (void)promoteTicket; |
170 | 174 |
171 // Sets a new value for appPath. Used during installation to point a ticket | 175 // Sets a new value for appPath. Used during installation to point a ticket |
172 // at the installed copy. | 176 // at the installed copy. |
173 - (void)setAppPath:(NSString*)appPath; | 177 - (void)setAppPath:(NSString*)appPath; |
174 | 178 |
179 // Sets the total number of profiles and the number of signed in profiles. | |
180 - (void)updateProfileCountsWithNumProfiles:(uint32_t)numProfiles | |
Mark Mentovai
2015/02/20 21:54:18
I don’t think you need “num” in any of these, same
Mike Lerman
2015/02/23 16:12:11
Done - though the class' member variables (numProf
| |
181 numSignedInProfiles:(uint32_t)numSignedInProfiles; | |
182 | |
175 @end // @interface KeystoneGlue | 183 @end // @interface KeystoneGlue |
176 | 184 |
177 @interface KeystoneGlue(ExposedForTesting) | 185 @interface KeystoneGlue(ExposedForTesting) |
178 | 186 |
179 // Load any params we need for configuring Keystone. | 187 // Load any params we need for configuring Keystone. |
180 - (void)loadParameters; | 188 - (void)loadParameters; |
181 | 189 |
182 // Load the Keystone registration object. | 190 // Load the Keystone registration object. |
183 // Return NO on failure. | 191 // Return NO on failure. |
184 - (BOOL)loadKeystoneRegistration; | 192 - (BOOL)loadKeystoneRegistration; |
(...skipping 20 matching lines...) Expand all Loading... | |
205 | 213 |
206 // True if Keystone is enabled. | 214 // True if Keystone is enabled. |
207 bool KeystoneEnabled(); | 215 bool KeystoneEnabled(); |
208 | 216 |
209 // The version of the application currently installed on disk. | 217 // The version of the application currently installed on disk. |
210 base::string16 CurrentlyInstalledVersion(); | 218 base::string16 CurrentlyInstalledVersion(); |
211 | 219 |
212 } // namespace keystone_glue | 220 } // namespace keystone_glue |
213 | 221 |
214 #endif // CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ | 222 #endif // CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ |
OLD | NEW |