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

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

Issue 8613001: Revert 110905 - Adding parameter to GetStatusLabels to indicate if links are acceptable, as some ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 virtual void OnUserChoseDatatypes(bool sync_everything, 240 virtual void OnUserChoseDatatypes(bool sync_everything,
241 const syncable::ModelTypeSet& chosen_types); 241 const syncable::ModelTypeSet& chosen_types);
242 242
243 // Called when a user cancels any setup dialog (login, etc). 243 // Called when a user cancels any setup dialog (login, etc).
244 virtual void OnUserCancelledDialog(); 244 virtual void OnUserCancelledDialog();
245 245
246 // Get various information for displaying in the user interface. 246 // Get various information for displaying in the user interface.
247 browser_sync::SyncBackendHost::StatusSummary QuerySyncStatusSummary(); 247 browser_sync::SyncBackendHost::StatusSummary QuerySyncStatusSummary();
248 virtual browser_sync::SyncBackendHost::Status QueryDetailedSyncStatus(); 248 virtual browser_sync::SyncBackendHost::Status QueryDetailedSyncStatus();
249 249
250 virtual const GoogleServiceAuthError& GetAuthError() const; 250 const GoogleServiceAuthError& GetAuthError() const {
251 return last_auth_error_;
252 }
251 253
252 // Displays a dialog for the user to enter GAIA credentials and attempt 254 // Displays a dialog for the user to enter GAIA credentials and attempt
253 // re-authentication, and returns true if it actually opened the dialog. 255 // re-authentication, and returns true if it actually opened the dialog.
254 // Returns false if a dialog is already showing, an auth attempt is in 256 // Returns false if a dialog is already showing, an auth attempt is in
255 // progress, the sync system is already authenticated, or some error 257 // progress, the sync system is already authenticated, or some error
256 // occurred preventing the action. We make it the duty of ProfileSyncService 258 // occurred preventing the action. We make it the duty of ProfileSyncService
257 // to open the dialog to easily ensure only one is ever showing. 259 // to open the dialog to easily ensure only one is ever showing.
258 virtual bool SetupInProgress() const; 260 virtual bool SetupInProgress() const;
259 bool WizardIsVisible() const { 261 bool WizardIsVisible() const {
260 return wizard_.IsVisible(); 262 return wizard_.IsVisible();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // takes place, and the backend isn't initialized yet? 294 // takes place, and the backend isn't initialized yet?
293 virtual bool sync_initialized() const; 295 virtual bool sync_initialized() const;
294 virtual bool unrecoverable_error_detected() const; 296 virtual bool unrecoverable_error_detected() const;
295 const std::string& unrecoverable_error_message() { 297 const std::string& unrecoverable_error_message() {
296 return unrecoverable_error_message_; 298 return unrecoverable_error_message_;
297 } 299 }
298 tracked_objects::Location unrecoverable_error_location() { 300 tracked_objects::Location unrecoverable_error_location() {
299 return unrecoverable_error_location_; 301 return unrecoverable_error_location_;
300 } 302 }
301 303
302 virtual bool UIShouldDepictAuthInProgress() const; 304 bool UIShouldDepictAuthInProgress() const {
305 return is_auth_in_progress_;
306 }
303 307
304 // Returns true if OnPassphraseRequired has been called for any reason. 308 // Returns true if OnPassphraseRequired has been called for any reason.
305 virtual bool IsPassphraseRequired() const; 309 virtual bool IsPassphraseRequired() const;
306 310
307 // Returns true if OnPassphraseRequired has been called for decryption and 311 // Returns true if OnPassphraseRequired has been called for decryption and
308 // we have an encrypted data type enabled. 312 // we have an encrypted data type enabled.
309 virtual bool IsPassphraseRequiredForDecryption() const; 313 virtual bool IsPassphraseRequiredForDecryption() const;
310 314
311 sync_api::PassphraseRequiredReason passphrase_required_reason() const { 315 sync_api::PassphraseRequiredReason passphrase_required_reason() const {
312 return passphrase_required_reason_; 316 return passphrase_required_reason_;
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 FailedDatatypesHandler failed_datatypes_handler_; 713 FailedDatatypesHandler failed_datatypes_handler_;
710 714
711 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 715 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
712 }; 716 };
713 717
714 bool ShouldShowActionOnUI( 718 bool ShouldShowActionOnUI(
715 const browser_sync::SyncProtocolError& error); 719 const browser_sync::SyncProtocolError& error);
716 720
717 721
718 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 722 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698