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

Side by Side Diff: chrome/browser/api/sync/profile_sync_service_base.h

Issue 12033093: sync: Implementation of Priority Preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another rebase 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_API_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ 5 #ifndef CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
6 #define CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ 6 #define CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
7 7
8 #include "chrome/browser/api/sync/profile_sync_service_observer.h" 8 #include "chrome/browser/api/sync/profile_sync_service_observer.h"
9 #include "sync/internal_api/public/base/model_type.h" 9 #include "sync/internal_api/public/base/model_type.h"
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 // Returns whether processing changes is allowed. Check this before doing 30 // Returns whether processing changes is allowed. Check this before doing
31 // any model-modifying operations. 31 // any model-modifying operations.
32 virtual bool ShouldPushChanges() = 0; 32 virtual bool ShouldPushChanges() = 0;
33 33
34 // Get the set of currently enabled data types (as chosen or 34 // Get the set of currently enabled data types (as chosen or
35 // configured by the user). See class comment on ProfileSyncService 35 // configured by the user). See class comment on ProfileSyncService
36 // for more on what it means for a datatype to be Preferred. 36 // for more on what it means for a datatype to be Preferred.
37 virtual syncer::ModelTypeSet GetPreferredDataTypes() const = 0; 37 virtual syncer::ModelTypeSet GetPreferredDataTypes() const = 0;
38 38
39 // Gets the set of currently enabled priority data types.
40 virtual syncer::ModelTypeSet GetPriorityDataTypes() const = 0;
Nicolas Zea 2013/02/21 23:41:11 Do you use this anywhere outside of ProfileSyncSer
albertb 2013/02/22 20:08:47 Done.
41
39 // Adds/removes an observer. ProfileSyncServiceBase does not take 42 // Adds/removes an observer. ProfileSyncServiceBase does not take
40 // ownership of the observer. 43 // ownership of the observer.
41 virtual void AddObserver(Observer* observer) = 0; 44 virtual void AddObserver(Observer* observer) = 0;
42 virtual void RemoveObserver(Observer* observer) = 0; 45 virtual void RemoveObserver(Observer* observer) = 0;
43 46
44 // Returns true if |observer| has already been added as an observer. 47 // Returns true if |observer| has already been added as an observer.
45 virtual bool HasObserver(Observer* observer) const = 0; 48 virtual bool HasObserver(Observer* observer) const = 0;
46 }; 49 };
47 50
48 #endif // CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ 51 #endif // CHROME_BROWSER_API_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/preferences.cc » ('j') | chrome/browser/prefs/pref_model_associator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698