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

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

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

Powered by Google App Engine
This is Rietveld 408576698