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

Side by Side Diff: components/sync/engine/sync_engine.h

Issue 2624943002: [Sync] Move snapshot cache from SBHI to PSS. (Closed)
Patch Set: Address comments. Created 3 years, 11 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
« no previous file with comments | « components/sync/engine/fake_sync_engine.cc ('k') | components/sync/engine/sync_engine_host.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void Shutdown(ShutdownReason reason) = 0; 132 virtual void Shutdown(ShutdownReason reason) = 0;
133 133
134 // Turns on encryption of all present and future sync data. 134 // Turns on encryption of all present and future sync data.
135 virtual void EnableEncryptEverything() = 0; 135 virtual void EnableEncryptEverything() = 0;
136 136
137 // Obtain a handle to the UserShare needed for creating transactions. Should 137 // Obtain a handle to the UserShare needed for creating transactions. Should
138 // not be called before we signal initialization is complete with 138 // not be called before we signal initialization is complete with
139 // OnBackendInitialized(). 139 // OnBackendInitialized().
140 virtual UserShare* GetUserShare() const = 0; 140 virtual UserShare* GetUserShare() const = 0;
141 141
142 // Called from any thread to obtain current status information in detailed or 142 // Called from any thread to obtain current detailed status information.
143 // summarized form.
144 virtual Status GetDetailedStatus() = 0; 143 virtual Status GetDetailedStatus() = 0;
145 virtual SyncCycleSnapshot GetLastCycleSnapshot() const = 0;
146 144
147 // Determines if the underlying sync engine has made any local changes to 145 // Determines if the underlying sync engine has made any local changes to
148 // items that have not yet been synced with the server. 146 // items that have not yet been synced with the server.
149 // ONLY CALL THIS IF OnInitializationComplete was called! 147 // ONLY CALL THIS IF OnInitializationComplete was called!
150 virtual bool HasUnsyncedItems() const = 0; 148 virtual bool HasUnsyncedItems() const = 0;
151 149
152 // Whether or not we are syncing encryption keys. 150 // Whether or not we are syncing encryption keys.
153 virtual bool IsNigoriEnabled() const = 0; 151 virtual bool IsNigoriEnabled() const = 0;
154 152
155 // Returns the type of passphrase being used to encrypt data. See 153 // Returns the type of passphrase being used to encrypt data. See
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // See SyncManager::OnCookieJarChanged. 196 // See SyncManager::OnCookieJarChanged.
199 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 197 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
200 198
201 private: 199 private:
202 DISALLOW_COPY_AND_ASSIGN(SyncEngine); 200 DISALLOW_COPY_AND_ASSIGN(SyncEngine);
203 }; 201 };
204 202
205 } // namespace syncer 203 } // namespace syncer
206 204
207 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ 205 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
OLDNEW
« no previous file with comments | « components/sync/engine/fake_sync_engine.cc ('k') | components/sync/engine/sync_engine_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698