Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 8383036: Adding parameter to GetStatusLabels to indicate if links are acceptable. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Self-review fix. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 virtual void OnUserChoseDatatypes(bool sync_everything, 242 virtual void OnUserChoseDatatypes(bool sync_everything,
243 const syncable::ModelTypeSet& chosen_types); 243 const syncable::ModelTypeSet& chosen_types);
244 244
245 // Called when a user cancels any setup dialog (login, etc). 245 // Called when a user cancels any setup dialog (login, etc).
246 virtual void OnUserCancelledDialog(); 246 virtual void OnUserCancelledDialog();
247 247
248 // Get various information for displaying in the user interface. 248 // Get various information for displaying in the user interface.
249 browser_sync::SyncBackendHost::StatusSummary QuerySyncStatusSummary(); 249 browser_sync::SyncBackendHost::StatusSummary QuerySyncStatusSummary();
250 virtual browser_sync::SyncBackendHost::Status QueryDetailedSyncStatus(); 250 virtual browser_sync::SyncBackendHost::Status QueryDetailedSyncStatus();
251 251
252 const GoogleServiceAuthError& GetAuthError() const { 252 virtual const GoogleServiceAuthError& GetAuthError() const {
253 return last_auth_error_; 253 return last_auth_error_;
254 } 254 }
255 255
256 // Displays a dialog for the user to enter GAIA credentials and attempt 256 // Displays a dialog for the user to enter GAIA credentials and attempt
257 // re-authentication, and returns true if it actually opened the dialog. 257 // re-authentication, and returns true if it actually opened the dialog.
258 // Returns false if a dialog is already showing, an auth attempt is in 258 // Returns false if a dialog is already showing, an auth attempt is in
259 // progress, the sync system is already authenticated, or some error 259 // progress, the sync system is already authenticated, or some error
260 // occurred preventing the action. We make it the duty of ProfileSyncService 260 // occurred preventing the action. We make it the duty of ProfileSyncService
261 // to open the dialog to easily ensure only one is ever showing. 261 // to open the dialog to easily ensure only one is ever showing.
262 virtual bool SetupInProgress() const; 262 virtual bool SetupInProgress() const;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // takes place, and the backend isn't initialized yet? 296 // takes place, and the backend isn't initialized yet?
297 virtual bool sync_initialized() const; 297 virtual bool sync_initialized() const;
298 virtual bool unrecoverable_error_detected() const; 298 virtual bool unrecoverable_error_detected() const;
299 const std::string& unrecoverable_error_message() { 299 const std::string& unrecoverable_error_message() {
300 return unrecoverable_error_message_; 300 return unrecoverable_error_message_;
301 } 301 }
302 tracked_objects::Location unrecoverable_error_location() { 302 tracked_objects::Location unrecoverable_error_location() {
303 return unrecoverable_error_location_; 303 return unrecoverable_error_location_;
304 } 304 }
305 305
306 bool UIShouldDepictAuthInProgress() const { 306 virtual bool UIShouldDepictAuthInProgress() const {
307 return is_auth_in_progress_; 307 return is_auth_in_progress_;
308 } 308 }
309 309
310 // Returns true if OnPassphraseRequired has been called for any reason. 310 // Returns true if OnPassphraseRequired has been called for any reason.
311 virtual bool IsPassphraseRequired() const; 311 virtual bool IsPassphraseRequired() const;
312 312
313 // Returns true if OnPassphraseRequired has been called for decryption and 313 // Returns true if OnPassphraseRequired has been called for decryption and
314 // we have an encrypted data type enabled. 314 // we have an encrypted data type enabled.
315 virtual bool IsPassphraseRequiredForDecryption() const; 315 virtual bool IsPassphraseRequiredForDecryption() const;
316 316
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 FailedDatatypesHandler failed_datatypes_handler_; 703 FailedDatatypesHandler failed_datatypes_handler_;
704 704
705 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 705 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
706 }; 706 };
707 707
708 bool ShouldShowActionOnUI( 708 bool ShouldShowActionOnUI(
709 const browser_sync::SyncProtocolError& error); 709 const browser_sync::SyncProtocolError& error);
710 710
711 711
712 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 712 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698