| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 // this info to that class, and remove these functions. | 374 // this info to that class, and remove these functions. |
| 375 | 375 |
| 376 virtual const browser_sync::sessions::SyncSessionSnapshot* | 376 virtual const browser_sync::sessions::SyncSessionSnapshot* |
| 377 GetLastSessionSnapshot() const; | 377 GetLastSessionSnapshot() const; |
| 378 | 378 |
| 379 // Returns whether or not the underlying sync engine has made any | 379 // Returns whether or not the underlying sync engine has made any |
| 380 // local changes to items that have not yet been synced with the | 380 // local changes to items that have not yet been synced with the |
| 381 // server. | 381 // server. |
| 382 bool HasUnsyncedItems() const; | 382 bool HasUnsyncedItems() const; |
| 383 | 383 |
| 384 // Logs the current unsynced items in the sync database. Useful for debugging. | |
| 385 void LogUnsyncedItems(int level) const; | |
| 386 | |
| 387 // Used by ProfileSyncServiceHarness. May return NULL. | 384 // Used by ProfileSyncServiceHarness. May return NULL. |
| 388 browser_sync::BackendMigrator* GetBackendMigratorForTest(); | 385 browser_sync::BackendMigrator* GetBackendMigratorForTest(); |
| 389 | 386 |
| 390 // Get the current routing information for all enabled model types. | 387 // Get the current routing information for all enabled model types. |
| 391 // If a model type is not enabled (that is, if the syncer should not | 388 // If a model type is not enabled (that is, if the syncer should not |
| 392 // be trying to sync it), it is not in this map. | 389 // be trying to sync it), it is not in this map. |
| 393 // | 390 // |
| 394 // TODO(akalin): This function is used by | 391 // TODO(akalin): This function is used by |
| 395 // sync_ui_util::ConstructAboutInformation() and by some test | 392 // sync_ui_util::ConstructAboutInformation() and by some test |
| 396 // classes. Figure out a different way to expose this info and | 393 // classes. Figure out a different way to expose this info and |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 browser_sync::SyncProtocolError last_actionable_error_; | 671 browser_sync::SyncProtocolError last_actionable_error_; |
| 675 | 672 |
| 676 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 673 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 677 }; | 674 }; |
| 678 | 675 |
| 679 bool ShouldShowActionOnUI( | 676 bool ShouldShowActionOnUI( |
| 680 const browser_sync::SyncProtocolError& error); | 677 const browser_sync::SyncProtocolError& error); |
| 681 | 678 |
| 682 | 679 |
| 683 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 680 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |