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

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

Issue 469073002: Revert 289113 "Revert 288557 "[Sync] Use OnSingleDataTypeUnrecov..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 months 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
OLDNEW
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 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 551
552 // Returns whether sync is managed, i.e. controlled by configuration 552 // Returns whether sync is managed, i.e. controlled by configuration
553 // management. If so, the user is not allowed to configure sync. 553 // management. If so, the user is not allowed to configure sync.
554 virtual bool IsManaged() const; 554 virtual bool IsManaged() const;
555 555
556 // syncer::UnrecoverableErrorHandler implementation. 556 // syncer::UnrecoverableErrorHandler implementation.
557 virtual void OnUnrecoverableError( 557 virtual void OnUnrecoverableError(
558 const tracked_objects::Location& from_here, 558 const tracked_objects::Location& from_here,
559 const std::string& message) OVERRIDE; 559 const std::string& message) OVERRIDE;
560 560
561 // Called when a datatype wishes to disable itself. The datatype to be
562 // disabled is passed via |error.model_type()|. Note, this does not change
563 // preferred state of a datatype and is not persisted across restarts.
564 virtual void DisableDatatype(const syncer::SyncError& error);
565
566 // Called to re-enable a type disabled by DisableDatatype(..). Note, this does 561 // Called to re-enable a type disabled by DisableDatatype(..). Note, this does
567 // not change the preferred state of a datatype, and is not persisted across 562 // not change the preferred state of a datatype, and is not persisted across
568 // restarts. 563 // restarts.
569 void ReenableDatatype(syncer::ModelType type); 564 void ReenableDatatype(syncer::ModelType type);
570 565
571 // The functions below (until ActivateDataType()) should only be 566 // The functions below (until ActivateDataType()) should only be
572 // called if sync_initialized() is true. 567 // called if sync_initialized() is true.
573 568
574 // TODO(akalin): This is called mostly by ModelAssociators and 569 // TODO(akalin): This is called mostly by ModelAssociators and
575 // tests. Figure out how to pass the handle to the ModelAssociators 570 // tests. Figure out how to pass the handle to the ModelAssociators
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 scoped_ptr<base::Time> last_backup_time_; 1147 scoped_ptr<base::Time> last_backup_time_;
1153 1148
1154 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1149 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1155 }; 1150 };
1156 1151
1157 bool ShouldShowActionOnUI( 1152 bool ShouldShowActionOnUI(
1158 const syncer::SyncProtocolError& error); 1153 const syncer::SyncProtocolError& error);
1159 1154
1160 1155
1161 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1156 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698