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