| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 UnrecoverableErrorSuspendsService); | 361 UnrecoverableErrorSuspendsService); |
| 362 | 362 |
| 363 // Initializes the various settings from the command line. | 363 // Initializes the various settings from the command line. |
| 364 void InitSettings(); | 364 void InitSettings(); |
| 365 | 365 |
| 366 // Sets the last synced time to the current time. | 366 // Sets the last synced time to the current time. |
| 367 void UpdateLastSyncedTime(); | 367 void UpdateLastSyncedTime(); |
| 368 | 368 |
| 369 static const wchar_t* GetPrefNameForDataType(syncable::ModelType data_type); | 369 static const wchar_t* GetPrefNameForDataType(syncable::ModelType data_type); |
| 370 | 370 |
| 371 // When running inside Chrome OS, extract the LSID cookie from the cookie | |
| 372 // store to bootstrap the authentication process. | |
| 373 virtual std::string GetLsidForAuthBootstraping(); | |
| 374 | |
| 375 // Time at which we begin an attempt a GAIA authorization. | 371 // Time at which we begin an attempt a GAIA authorization. |
| 376 base::TimeTicks auth_start_time_; | 372 base::TimeTicks auth_start_time_; |
| 377 | 373 |
| 378 // Time at which error UI is presented for the new tab page. | 374 // Time at which error UI is presented for the new tab page. |
| 379 base::TimeTicks auth_error_time_; | 375 base::TimeTicks auth_error_time_; |
| 380 | 376 |
| 381 // Factory used to create various dependent objects. | 377 // Factory used to create various dependent objects. |
| 382 ProfileSyncFactory* factory_; | 378 ProfileSyncFactory* factory_; |
| 383 | 379 |
| 384 // The profile whose data we are synchronizing. | 380 // The profile whose data we are synchronizing. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 | 438 |
| 443 NotificationRegistrar registrar_; | 439 NotificationRegistrar registrar_; |
| 444 | 440 |
| 445 ScopedRunnableMethodFactory<ProfileSyncService> | 441 ScopedRunnableMethodFactory<ProfileSyncService> |
| 446 scoped_runnable_method_factory_; | 442 scoped_runnable_method_factory_; |
| 447 | 443 |
| 448 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 444 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 449 }; | 445 }; |
| 450 | 446 |
| 451 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 447 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |