OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CLEAR_DATA_COMMAND_H_ | 5 #ifndef SYNC_ENGINE_CLEAR_DATA_COMMAND_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_CLEAR_DATA_COMMAND_H_ | 6 #define SYNC_ENGINE_CLEAR_DATA_COMMAND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/browser/sync/engine/model_safe_worker.h" | 10 #include "sync/engine/model_safe_worker.h" |
11 #include "chrome/browser/sync/engine/syncer_command.h" | 11 #include "sync/engine/syncer_command.h" |
12 #include "chrome/browser/sync/syncable/model_type.h" | 12 #include "sync/syncable/model_type.h" |
13 | 13 |
14 namespace browser_sync { | 14 namespace browser_sync { |
15 | 15 |
16 // Clears server data associated with this user's account | 16 // Clears server data associated with this user's account |
17 class ClearDataCommand : public SyncerCommand { | 17 class ClearDataCommand : public SyncerCommand { |
18 public: | 18 public: |
19 ClearDataCommand(); | 19 ClearDataCommand(); |
20 virtual ~ClearDataCommand(); | 20 virtual ~ClearDataCommand(); |
21 | 21 |
22 // SyncerCommand implementation. | 22 // SyncerCommand implementation. |
23 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE; | 23 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE; |
24 | 24 |
25 private: | 25 private: |
26 DISALLOW_COPY_AND_ASSIGN(ClearDataCommand); | 26 DISALLOW_COPY_AND_ASSIGN(ClearDataCommand); |
27 }; | 27 }; |
28 | 28 |
29 } // namespace browser_sync | 29 } // namespace browser_sync |
30 | 30 |
31 #endif // CHROME_BROWSER_SYNC_ENGINE_CLEAR_DATA_COMMAND_H_ | 31 #endif // SYNC_ENGINE_CLEAR_DATA_COMMAND_H_ |
OLD | NEW |