| OLD | NEW |
| 1 // Copyright (c) 2006-2010 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_CLEAR_DATA_COMMAND_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_CLEAR_DATA_COMMAND_H_ |
| 6 #define CHROME_BROWSER_SYNC_ENGINE_CLEAR_DATA_COMMAND_H_ | 6 #define CHROME_BROWSER_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 "chrome/browser/sync/engine/model_safe_worker.h" |
| 11 #include "chrome/browser/sync/engine/syncer_command.h" | 11 #include "chrome/browser/sync/engine/syncer_command.h" |
| 12 #include "chrome/browser/sync/syncable/model_type.h" | 12 #include "chrome/browser/sync/syncable/model_type.h" |
| 13 | 13 |
| 14 namespace sync_pb { | |
| 15 class EntitySpecifics; | |
| 16 } | |
| 17 | |
| 18 namespace browser_sync { | 14 namespace browser_sync { |
| 19 | 15 |
| 20 // Clears server data associated with this user's account | 16 // Clears server data associated with this user's account |
| 21 class ClearDataCommand : public SyncerCommand { | 17 class ClearDataCommand : public SyncerCommand { |
| 22 public: | 18 public: |
| 23 ClearDataCommand(); | 19 ClearDataCommand(); |
| 24 virtual ~ClearDataCommand(); | 20 virtual ~ClearDataCommand(); |
| 25 | 21 |
| 26 // SyncerCommand implementation. | 22 // SyncerCommand implementation. |
| 27 virtual void ExecuteImpl(sessions::SyncSession* session); | 23 virtual void ExecuteImpl(sessions::SyncSession* session); |
| 28 | 24 |
| 29 private: | 25 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(ClearDataCommand); | 26 DISALLOW_COPY_AND_ASSIGN(ClearDataCommand); |
| 31 }; | 27 }; |
| 32 | 28 |
| 33 } // namespace browser_sync | 29 } // namespace browser_sync |
| 34 | 30 |
| 35 #endif // CHROME_BROWSER_SYNC_ENGINE_CLEAR_DATA_COMMAND_H_ | 31 #endif // CHROME_BROWSER_SYNC_ENGINE_CLEAR_DATA_COMMAND_H_ |
| 36 | |
| OLD | NEW |