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

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

Issue 6104003: sync: use progress markers instead of timestamps during GetUpdates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tim's fixes Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_HARNESS_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Returns true if the sync client has no unsynced items. 168 // Returns true if the sync client has no unsynced items.
169 bool IsSynced(); 169 bool IsSynced();
170 170
171 // Returns true if this client has downloaded all the items that the 171 // Returns true if this client has downloaded all the items that the
172 // other client has. 172 // other client has.
173 bool MatchesOtherClient(ProfileSyncServiceHarness* partner); 173 bool MatchesOtherClient(ProfileSyncServiceHarness* partner);
174 174
175 // Logs message with relevant info about client's sync state (if available). 175 // Logs message with relevant info about client's sync state (if available).
176 void LogClientInfo(std::string message); 176 void LogClientInfo(std::string message);
177 177
178 // Gets the current progress indicator of the current sync session. 178 // Gets the current progress indicator of the current sync session
179 int64 GetUpdatedTimestamp(); 179 // for a particular datatype.
180 std::string GetUpdatedTimestamp(syncable::ModelType model_type);
180 181
181 WaitState wait_state_; 182 WaitState wait_state_;
182 183
183 Profile* profile_; 184 Profile* profile_;
184 ProfileSyncService* service_; 185 ProfileSyncService* service_;
185 186
186 // The harness of the client whose update progress marker we're expecting 187 // The harness of the client whose update progress marker we're expecting
187 // eventually match. 188 // eventually match.
188 ProfileSyncServiceHarness* timestamp_match_partner_; 189 ProfileSyncServiceHarness* timestamp_match_partner_;
189 190
190 // Credentials used for GAIA authentication. 191 // Credentials used for GAIA authentication.
191 std::string username_; 192 std::string username_;
192 std::string password_; 193 std::string password_;
193 194
194 // Client ID, used for logging purposes. 195 // Client ID, used for logging purposes.
195 int id_; 196 int id_;
196 197
197 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness); 198 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness);
198 }; 199 };
199 200
200 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_ 201 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698