| 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_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // summarized form. | 228 // summarized form. |
| 229 Status GetDetailedStatus(); | 229 Status GetDetailedStatus(); |
| 230 StatusSummary GetStatusSummary(); | 230 StatusSummary GetStatusSummary(); |
| 231 const GoogleServiceAuthError& GetAuthError() const; | 231 const GoogleServiceAuthError& GetAuthError() const; |
| 232 const sessions::SyncSessionSnapshot* GetLastSessionSnapshot() const; | 232 const sessions::SyncSessionSnapshot* GetLastSessionSnapshot() const; |
| 233 | 233 |
| 234 const FilePath& sync_data_folder_path() const { | 234 const FilePath& sync_data_folder_path() const { |
| 235 return sync_data_folder_path_; | 235 return sync_data_folder_path_; |
| 236 } | 236 } |
| 237 | 237 |
| 238 // Returns the authenticated username of the sync user, or empty if none | |
| 239 // exists. It will only exist if the authentication service provider (e.g | |
| 240 // GAIA) has confirmed the username is authentic. | |
| 241 string16 GetAuthenticatedUsername() const; | |
| 242 | |
| 243 // Determines if the underlying sync engine has made any local changes to | 238 // Determines if the underlying sync engine has made any local changes to |
| 244 // items that have not yet been synced with the server. | 239 // items that have not yet been synced with the server. |
| 245 // ONLY CALL THIS IF OnInitializationComplete was called! | 240 // ONLY CALL THIS IF OnInitializationComplete was called! |
| 246 bool HasUnsyncedItems() const; | 241 bool HasUnsyncedItems() const; |
| 247 | 242 |
| 248 // Whether or not we are syncing encryption keys. | 243 // Whether or not we are syncing encryption keys. |
| 249 bool IsNigoriEnabled() const; | 244 bool IsNigoriEnabled() const; |
| 250 | 245 |
| 251 // Whether or not the Nigori node is encrypted using an explicit passphrase. | 246 // Whether or not the Nigori node is encrypted using an explicit passphrase. |
| 252 bool IsUsingExplicitPassphrase(); | 247 bool IsUsingExplicitPassphrase(); |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 | 600 |
| 606 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 601 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
| 607 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; | 602 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; |
| 608 | 603 |
| 609 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 604 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 610 }; | 605 }; |
| 611 | 606 |
| 612 } // namespace browser_sync | 607 } // namespace browser_sync |
| 613 | 608 |
| 614 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 609 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |