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