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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_ENGINE_STORE_TIMESTAMPS_COMMAND_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_STORE_TIMESTAMPS_COMMAND_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/sync/engine/syncer_command.h"
11 #include "chrome/browser/sync/engine/syncer_types.h"
12
13 namespace browser_sync {
14
15 // A syncer command that extracts the changelog timestamp information from
16 // a GetUpdatesResponse (fetched in DownloadUpdatesCommand) and stores
17 // it in the directory. This is meant to run immediately after
18 // ProcessUpdatesCommand.
19 //
20 // Preconditions - all updates in the SyncerSesssion have been stored in the
21 // database, meaning it is safe to update the persisted
22 // timestamps.
23 //
24 // Postconditions - The next_timestamp returned by the server will be
25 // saved into the directory (where it will be used
26 // the next time that DownloadUpdatesCommand runs).
27 class StoreTimestampsCommand : public SyncerCommand {
28 public:
29 StoreTimestampsCommand();
30 virtual ~StoreTimestampsCommand();
31
32 // SyncerCommand implementation.
33 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE;
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(StoreTimestampsCommand);
37 };
38
39 } // namespace browser_sync
40
41 #endif // CHROME_BROWSER_SYNC_ENGINE_STORE_TIMESTAMPS_COMMAND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698