| 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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 | 461 |
| 462 // TODO(akalin): These two functions are used only by | 462 // TODO(akalin): These two functions are used only by |
| 463 // ProfileSyncServiceHarness. Figure out a different way to expose | 463 // ProfileSyncServiceHarness. Figure out a different way to expose |
| 464 // this info to that class, and remove these functions. | 464 // this info to that class, and remove these functions. |
| 465 | 465 |
| 466 // Returns whether or not the underlying sync engine has made any | 466 // Returns whether or not the underlying sync engine has made any |
| 467 // local changes to items that have not yet been synced with the | 467 // local changes to items that have not yet been synced with the |
| 468 // server. | 468 // server. |
| 469 bool HasUnsyncedItems() const; | 469 bool HasUnsyncedItems() const; |
| 470 | 470 |
| 471 // Used by ProfileSyncServiceHarness. May return NULL. | 471 // Used by ProfileSyncServiceHarness. May return null. |
| 472 syncer::BackendMigrator* GetBackendMigratorForTest(); | 472 syncer::BackendMigrator* GetBackendMigratorForTest(); |
| 473 | 473 |
| 474 // Used by tests to inspect interaction with OAuth2TokenService. | 474 // Used by tests to inspect interaction with OAuth2TokenService. |
| 475 bool IsRetryingAccessTokenFetchForTest() const; | 475 bool IsRetryingAccessTokenFetchForTest() const; |
| 476 | 476 |
| 477 // Used by tests to inspect the OAuth2 access tokens used by PSS. | 477 // Used by tests to inspect the OAuth2 access tokens used by PSS. |
| 478 std::string GetAccessTokenForTest() const; | 478 std::string GetAccessTokenForTest() const; |
| 479 | 479 |
| 480 // TODO(sync): This is only used in tests. Can we remove it? | 480 // TODO(sync): This is only used in tests. Can we remove it? |
| 481 void GetModelSafeRoutingInfo(syncer::ModelSafeRoutingInfo* out) const; | 481 void GetModelSafeRoutingInfo(syncer::ModelSafeRoutingInfo* out) const; |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 1008 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
| 1009 | 1009 |
| 1010 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1010 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1011 }; | 1011 }; |
| 1012 | 1012 |
| 1013 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 1013 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
| 1014 | 1014 |
| 1015 } // namespace browser_sync | 1015 } // namespace browser_sync |
| 1016 | 1016 |
| 1017 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1017 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |