OLD | NEW |
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_SYNC_PREFS_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
6 #define CHROME_BROWSER_SYNC_SYNC_PREFS_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void ClearPreferences(); | 62 void ClearPreferences(); |
63 | 63 |
64 // Getters and setters for global sync prefs. | 64 // Getters and setters for global sync prefs. |
65 | 65 |
66 bool HasSyncSetupCompleted() const; | 66 bool HasSyncSetupCompleted() const; |
67 void SetSyncSetupCompleted(); | 67 void SetSyncSetupCompleted(); |
68 | 68 |
69 bool IsStartSuppressed() const; | 69 bool IsStartSuppressed() const; |
70 void SetStartSuppressed(bool is_suppressed); | 70 void SetStartSuppressed(bool is_suppressed); |
71 | 71 |
| 72 std::string GetGoogleServicesUsername() const; |
| 73 |
72 base::Time GetLastSyncedTime() const; | 74 base::Time GetLastSyncedTime() const; |
73 void SetLastSyncedTime(base::Time time); | 75 void SetLastSyncedTime(base::Time time); |
74 | 76 |
75 bool HasKeepEverythingSynced() const; | 77 bool HasKeepEverythingSynced() const; |
76 void SetKeepEverythingSynced(bool keep_everything_synced); | 78 void SetKeepEverythingSynced(bool keep_everything_synced); |
77 | 79 |
78 // The returned set is guaranteed to be a subset of | 80 // The returned set is guaranteed to be a subset of |
79 // |registered_types|. Returns |registered_types| directly if | 81 // |registered_types|. Returns |registered_types| directly if |
80 // HasKeepEverythingSynced() is true. | 82 // HasKeepEverythingSynced() is true. |
81 syncable::ModelTypeSet GetPreferredDataTypes( | 83 syncable::ModelTypeSet GetPreferredDataTypes( |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // The preference that controls whether sync is under control by | 135 // The preference that controls whether sync is under control by |
134 // configuration management. | 136 // configuration management. |
135 BooleanPrefMember pref_sync_managed_; | 137 BooleanPrefMember pref_sync_managed_; |
136 | 138 |
137 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 139 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
138 }; | 140 }; |
139 | 141 |
140 } // namespace browser_sync | 142 } // namespace browser_sync |
141 | 143 |
142 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ | 144 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
OLD | NEW |