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

Side by Side Diff: sync/engine/store_timestamps_command.h

Issue 11485019: [Sync] Add tests for invalid specifics field number handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years 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 | « sync/engine/DEPS ('k') | sync/engine/store_timestamps_command.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) 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 SYNC_ENGINE_STORE_TIMESTAMPS_COMMAND_H_ 5 #ifndef SYNC_ENGINE_STORE_TIMESTAMPS_COMMAND_H_
6 #define SYNC_ENGINE_STORE_TIMESTAMPS_COMMAND_H_ 6 #define SYNC_ENGINE_STORE_TIMESTAMPS_COMMAND_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "sync/base/sync_export.h"
9 #include "sync/engine/syncer_command.h" 10 #include "sync/engine/syncer_command.h"
10 #include "sync/engine/syncer_types.h" 11 #include "sync/engine/syncer_types.h"
12 #include "sync/internal_api/public/base/model_type.h"
13
14 namespace sync_pb {
15 class GetUpdatesResponse;
16 } // namespace sync_pb
11 17
12 namespace syncer { 18 namespace syncer {
13 19
20 namespace syncable {
21 class Directory;
22 } // namespace syncable
23
24 // Sets |dir|'s progress markers from the data in |response|. Returns
25 // the set of model types with new progress markers.
26 SYNC_EXPORT_PRIVATE ModelTypeSet ProcessNewProgressMarkers(
Nicolas Zea 2012/12/13 01:48:21 Is this now necessary for any methods called in te
akalin 2012/12/13 01:50:30 Not yet, but very soon!
27 const sync_pb::GetUpdatesResponse& response,
28 syncable::Directory* dir);
29
14 // A syncer command that extracts the changelog timestamp information from 30 // A syncer command that extracts the changelog timestamp information from
15 // a GetUpdatesResponse (fetched in DownloadUpdatesCommand) and stores 31 // a GetUpdatesResponse (fetched in DownloadUpdatesCommand) and stores
16 // it in the directory. This is meant to run immediately after 32 // it in the directory. This is meant to run immediately after
17 // ProcessUpdatesCommand. 33 // ProcessUpdatesCommand.
18 // 34 //
19 // Preconditions - all updates in the SyncerSesssion have been stored in the 35 // Preconditions - all updates in the SyncerSesssion have been stored in the
20 // database, meaning it is safe to update the persisted 36 // database, meaning it is safe to update the persisted
21 // timestamps. 37 // timestamps.
22 // 38 //
23 // Postconditions - The next_timestamp returned by the server will be 39 // Postconditions - The next_timestamp returned by the server will be
24 // saved into the directory (where it will be used 40 // saved into the directory (where it will be used
25 // the next time that DownloadUpdatesCommand runs). 41 // the next time that DownloadUpdatesCommand runs).
26 class StoreTimestampsCommand : public SyncerCommand { 42 class StoreTimestampsCommand : public SyncerCommand {
27 public: 43 public:
28 StoreTimestampsCommand(); 44 StoreTimestampsCommand();
29 virtual ~StoreTimestampsCommand(); 45 virtual ~StoreTimestampsCommand();
30 46
31 // SyncerCommand implementation. 47 // SyncerCommand implementation.
32 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE; 48 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE;
33 49
34 private: 50 private:
35 DISALLOW_COPY_AND_ASSIGN(StoreTimestampsCommand); 51 DISALLOW_COPY_AND_ASSIGN(StoreTimestampsCommand);
36 }; 52 };
37 53
38 } // namespace syncer 54 } // namespace syncer
39 55
40 #endif // SYNC_ENGINE_STORE_TIMESTAMPS_COMMAND_H_ 56 #endif // SYNC_ENGINE_STORE_TIMESTAMPS_COMMAND_H_
OLDNEW
« no previous file with comments | « sync/engine/DEPS ('k') | sync/engine/store_timestamps_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698