OLD | NEW |
1 // Copyright (c) 2011 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_APPLY_UPDATES_COMMAND_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_APPLY_UPDATES_COMMAND_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_APPLY_UPDATES_COMMAND_H_ | 6 #define CHROME_BROWSER_SYNC_ENGINE_APPLY_UPDATES_COMMAND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" | 10 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" |
11 | 11 |
12 namespace browser_sync { | 12 namespace browser_sync { |
13 | 13 |
14 class ApplyUpdatesCommand : public ModelChangingSyncerCommand { | 14 class ApplyUpdatesCommand : public ModelChangingSyncerCommand { |
15 public: | 15 public: |
16 ApplyUpdatesCommand(); | 16 ApplyUpdatesCommand(); |
17 virtual ~ApplyUpdatesCommand(); | 17 virtual ~ApplyUpdatesCommand(); |
18 | 18 |
19 protected: | |
20 // ModelChangingSyncerCommand implementation. | 19 // ModelChangingSyncerCommand implementation. |
21 virtual std::set<ModelSafeGroup> GetGroupsToChange( | |
22 const sessions::SyncSession& session) const OVERRIDE; | |
23 virtual void ModelChangingExecuteImpl( | 20 virtual void ModelChangingExecuteImpl( |
24 sessions::SyncSession* session) OVERRIDE; | 21 sessions::SyncSession* session) OVERRIDE; |
25 | 22 |
26 private: | 23 private: |
27 DISALLOW_COPY_AND_ASSIGN(ApplyUpdatesCommand); | 24 DISALLOW_COPY_AND_ASSIGN(ApplyUpdatesCommand); |
28 }; | 25 }; |
29 | 26 |
30 } // namespace browser_sync | 27 } // namespace browser_sync |
31 | 28 |
32 #endif // CHROME_BROWSER_SYNC_ENGINE_APPLY_UPDATES_COMMAND_H_ | 29 #endif // CHROME_BROWSER_SYNC_ENGINE_APPLY_UPDATES_COMMAND_H_ |
OLD | NEW |