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

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

Issue 12033093: sync: Implementation of Priority Preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Initializes the object. This must be called at most once, and 224 // Initializes the object. This must be called at most once, and
225 // immediately after an object of this class is constructed. 225 // immediately after an object of this class is constructed.
226 void Initialize(); 226 void Initialize();
227 227
228 virtual void SetSyncSetupCompleted(); 228 virtual void SetSyncSetupCompleted();
229 229
230 // ProfileSyncServiceBase implementation. 230 // ProfileSyncServiceBase implementation.
231 virtual bool HasSyncSetupCompleted() const OVERRIDE; 231 virtual bool HasSyncSetupCompleted() const OVERRIDE;
232 virtual bool ShouldPushChanges() OVERRIDE; 232 virtual bool ShouldPushChanges() OVERRIDE;
233 virtual syncer::ModelTypeSet GetPreferredDataTypes() const OVERRIDE; 233 virtual syncer::ModelTypeSet GetPreferredDataTypes() const OVERRIDE;
234 virtual syncer::ModelTypeSet GetPriorityDataTypes() const;
234 virtual void AddObserver(Observer* observer) OVERRIDE; 235 virtual void AddObserver(Observer* observer) OVERRIDE;
235 virtual void RemoveObserver(Observer* observer) OVERRIDE; 236 virtual void RemoveObserver(Observer* observer) OVERRIDE;
236 virtual bool HasObserver(Observer* observer) const OVERRIDE; 237 virtual bool HasObserver(Observer* observer) const OVERRIDE;
237 238
238 void RegisterAuthNotifications(); 239 void RegisterAuthNotifications();
239 240
240 // Returns true if sync is enabled/not suppressed and the user is logged in. 241 // Returns true if sync is enabled/not suppressed and the user is logged in.
241 // (being logged in does not mean that tokens are available - tokens may 242 // (being logged in does not mean that tokens are available - tokens may
242 // be missing because they have not loaded yet, or because they were deleted 243 // be missing because they have not loaded yet, or because they were deleted
243 // due to http://crbug.com/121755). 244 // due to http://crbug.com/121755).
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 907 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
907 908
908 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 909 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
909 }; 910 };
910 911
911 bool ShouldShowActionOnUI( 912 bool ShouldShowActionOnUI(
912 const syncer::SyncProtocolError& error); 913 const syncer::SyncProtocolError& error);
913 914
914 915
915 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 916 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698