| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 entry. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_END_COMMAND_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_END_COMMAND_H_ |
| 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_END_COMMAND_H_ | 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_END_COMMAND_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/browser/sync/engine/syncer_command.h" | 9 #include "chrome/browser/sync/engine/syncer_command.h" |
| 10 | 10 |
| 11 namespace browser_sync { | 11 namespace browser_sync { |
| 12 | 12 |
| 13 // A syncer command for wrapping up a sync cycle. | 13 // A syncer command for wrapping up a sync cycle. |
| 14 // | 14 // |
| 15 // Preconditions - syncing is complete. | 15 // Preconditions - syncing is complete. |
| 16 // | 16 // |
| 17 // Postconditions - The UI has been told that we're done syncing. | 17 // Postconditions - The UI has been told that we're done syncing. |
| 18 | 18 |
| 19 class SyncerEndCommand : public SyncerCommand { | 19 class SyncerEndCommand : public SyncerCommand { |
| 20 public: | 20 public: |
| 21 SyncerEndCommand(); | 21 SyncerEndCommand(); |
| 22 virtual ~SyncerEndCommand(); | 22 virtual ~SyncerEndCommand(); |
| 23 | 23 |
| 24 // SyncerCommand implementation. | 24 // SyncerCommand implementation. |
| 25 virtual void ExecuteImpl(sessions::SyncSession* session); | 25 virtual void ExecuteImpl(sessions::SyncSession* session); |
| 26 private: | 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(SyncerEndCommand); | 27 DISALLOW_COPY_AND_ASSIGN(SyncerEndCommand); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace browser_sync | 30 } // namespace browser_sync |
| 31 | 31 |
| 32 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_END_COMMAND_H_ | 32 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_END_COMMAND_H_ |
| OLD | NEW |