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