OLD | NEW |
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_BASE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ |
7 | 7 |
8 #include "chrome/browser/sync/profile_sync_service_observer.h" | 8 #include "chrome/browser/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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // will the the empty set. Once the configuration completes the set will | 44 // will the the empty set. Once the configuration completes the set will |
45 // be updated. | 45 // be updated. |
46 virtual syncer::ModelTypeSet GetActiveDataTypes() const = 0; | 46 virtual syncer::ModelTypeSet GetActiveDataTypes() const = 0; |
47 | 47 |
48 // Adds/removes an observer. ProfileSyncServiceBase does not take | 48 // Adds/removes an observer. ProfileSyncServiceBase does not take |
49 // ownership of the observer. | 49 // ownership of the observer. |
50 virtual void AddObserver(Observer* observer) = 0; | 50 virtual void AddObserver(Observer* observer) = 0; |
51 virtual void RemoveObserver(Observer* observer) = 0; | 51 virtual void RemoveObserver(Observer* observer) = 0; |
52 | 52 |
53 // Returns true if |observer| has already been added as an observer. | 53 // Returns true if |observer| has already been added as an observer. |
54 virtual bool HasObserver(Observer* observer) const = 0; | 54 virtual bool HasObserver(const Observer* observer) const = 0; |
55 }; | 55 }; |
56 | 56 |
57 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ | 57 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ |
OLD | NEW |