Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Side by Side Diff: chrome/browser/mac/keystone_glue.h

Issue 974423002: Revert of Profile_Metrics integration with Keystone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/mac/keystone_glue.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 NSString* productID_; 80 NSString* productID_;
81 NSString* appPath_; 81 NSString* appPath_;
82 NSString* url_; 82 NSString* url_;
83 NSString* version_; 83 NSString* version_;
84 NSString* channel_; // Logically: Dev, Beta, or Stable. 84 NSString* channel_; // Logically: Dev, Beta, or Stable.
85 BrandFileType brandFileType_; 85 BrandFileType brandFileType_;
86 86
87 // And the Keystone registration itself, with the active timer 87 // And the Keystone registration itself, with the active timer
88 KSRegistration* registration_; // strong 88 KSRegistration* registration_; // strong
89 NSTimer* timer_; // strong 89 NSTimer* timer_; // strong
90 Class ksUnsignedReportingAttributeClass_;
91 90
92 // The most recent kAutoupdateStatusNotification notification posted. 91 // The most recent kAutoupdateStatusNotification notification posted.
93 base::scoped_nsobject<NSNotification> recentNotification_; 92 base::scoped_nsobject<NSNotification> recentNotification_;
94 93
95 // 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
96 // carried across threads. 95 // carried across threads.
97 base::mac::ScopedAuthorizationRef authorization_; 96 base::mac::ScopedAuthorizationRef authorization_;
98 97
99 // YES if a synchronous promotion operation is in progress (promotion during 98 // YES if a synchronous promotion operation is in progress (promotion during
100 // installation). 99 // installation).
101 BOOL synchronousPromotion_; 100 BOOL synchronousPromotion_;
102 101
103 // YES if an update was ever successfully installed by -installUpdate. 102 // YES if an update was ever successfully installed by -installUpdate.
104 BOOL updateSuccessfullyInstalled_; 103 BOOL updateSuccessfullyInstalled_;
105
106 // Profile count information.
107 uint32_t numProfiles_;
108 uint32_t numSignedInProfiles_;
109 } 104 }
110 105
111 // Return the default Keystone Glue object. 106 // Return the default Keystone Glue object.
112 + (id)defaultKeystoneGlue; 107 + (id)defaultKeystoneGlue;
113 108
114 // Load KeystoneRegistration.framework if present, call into it to register 109 // Load KeystoneRegistration.framework if present, call into it to register
115 // with Keystone, and set up periodic activity pings. 110 // with Keystone, and set up periodic activity pings.
116 - (void)registerWithKeystone; 111 - (void)registerWithKeystone;
117 112
118 // -checkForUpdate launches a check for updates, and -installUpdate begins 113 // -checkForUpdate launches a check for updates, and -installUpdate begins
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 synchronous:(BOOL)synchronous; 165 synchronous:(BOOL)synchronous;
171 166
172 // Requests authorization and calls -promoteTicketWithAuthorization: in 167 // Requests authorization and calls -promoteTicketWithAuthorization: in
173 // asynchronous mode. 168 // asynchronous mode.
174 - (void)promoteTicket; 169 - (void)promoteTicket;
175 170
176 // Sets a new value for appPath. Used during installation to point a ticket 171 // Sets a new value for appPath. Used during installation to point a ticket
177 // at the installed copy. 172 // at the installed copy.
178 - (void)setAppPath:(NSString*)appPath; 173 - (void)setAppPath:(NSString*)appPath;
179 174
180 // Sets the total number of profiles and the number of signed in profiles.
181 - (void)updateProfileCountsWithNumProfiles:(uint32_t)profiles
182 numSignedInProfiles:(uint32_t)signedInProfiles;
183
184 @end // @interface KeystoneGlue 175 @end // @interface KeystoneGlue
185 176
186 @interface KeystoneGlue(ExposedForTesting) 177 @interface KeystoneGlue(ExposedForTesting)
187 178
188 // Load any params we need for configuring Keystone. 179 // Load any params we need for configuring Keystone.
189 - (void)loadParameters; 180 - (void)loadParameters;
190 181
191 // Load the Keystone registration object. 182 // Load the Keystone registration object.
192 // Return NO on failure. 183 // Return NO on failure.
193 - (BOOL)loadKeystoneRegistration; 184 - (BOOL)loadKeystoneRegistration;
(...skipping 20 matching lines...) Expand all
214 205
215 // True if Keystone is enabled. 206 // True if Keystone is enabled.
216 bool KeystoneEnabled(); 207 bool KeystoneEnabled();
217 208
218 // The version of the application currently installed on disk. 209 // The version of the application currently installed on disk.
219 base::string16 CurrentlyInstalledVersion(); 210 base::string16 CurrentlyInstalledVersion();
220 211
221 } // namespace keystone_glue 212 } // namespace keystone_glue
222 213
223 #endif // CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ 214 #endif // CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/mac/keystone_glue.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698