Chromium Code Reviews| 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 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 <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 289 // takes place, and the backend isn't initialized yet? | 289 // takes place, and the backend isn't initialized yet? |
| 290 virtual bool sync_initialized() const; | 290 virtual bool sync_initialized() const; |
| 291 virtual bool unrecoverable_error_detected() const; | 291 virtual bool unrecoverable_error_detected() const; |
| 292 const std::string& unrecoverable_error_message() { | 292 const std::string& unrecoverable_error_message() { |
| 293 return unrecoverable_error_message_; | 293 return unrecoverable_error_message_; |
| 294 } | 294 } |
| 295 tracked_objects::Location unrecoverable_error_location() { | 295 tracked_objects::Location unrecoverable_error_location() { |
| 296 return unrecoverable_error_location_; | 296 return unrecoverable_error_location_; |
| 297 } | 297 } |
| 298 | 298 |
| 299 // Puts the scheduler into NORMAL mode. | |
| 300 void StartSyncingWithServer(); | |
|
tim (not reviewing)
2012/04/20 22:38:09
We can't expose this through here. Any old code in
rlarocque
2012/04/20 22:45:08
I was struggling to find the least bad way to do t
| |
| 301 | |
| 299 // Returns true if OnPassphraseRequired has been called for any reason. | 302 // Returns true if OnPassphraseRequired has been called for any reason. |
| 300 virtual bool IsPassphraseRequired() const; | 303 virtual bool IsPassphraseRequired() const; |
| 301 | 304 |
| 302 // Returns true if OnPassphraseRequired has been called for decryption and | 305 // Returns true if OnPassphraseRequired has been called for decryption and |
| 303 // we have an encrypted data type enabled. | 306 // we have an encrypted data type enabled. |
| 304 virtual bool IsPassphraseRequiredForDecryption() const; | 307 virtual bool IsPassphraseRequiredForDecryption() const; |
| 305 | 308 |
| 306 sync_api::PassphraseRequiredReason passphrase_required_reason() const { | 309 sync_api::PassphraseRequiredReason passphrase_required_reason() const { |
| 307 return passphrase_required_reason_; | 310 return passphrase_required_reason_; |
| 308 } | 311 } |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 743 bool setup_in_progress_; | 746 bool setup_in_progress_; |
| 744 | 747 |
| 745 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 748 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 746 }; | 749 }; |
| 747 | 750 |
| 748 bool ShouldShowActionOnUI( | 751 bool ShouldShowActionOnUI( |
| 749 const browser_sync::SyncProtocolError& error); | 752 const browser_sync::SyncProtocolError& error); |
| 750 | 753 |
| 751 | 754 |
| 752 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 755 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |