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

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

Issue 8332023: Add support for temporarily disabling sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed methods for stopping/starting sync and added google services username to sync prefs Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.cc ('k') | chrome/browser/sync/sync_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.cc ('k') | chrome/browser/sync/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698