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_CLEANUP_DISABLED_TYPES_COMMAND_H_ | 5 #ifndef SYNC_ENGINE_CLEANUP_DISABLED_TYPES_COMMAND_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_CLEANUP_DISABLED_TYPES_COMMAND_H_ | 6 #define SYNC_ENGINE_CLEANUP_DISABLED_TYPES_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/syncer_command.h" | 10 #include "sync/engine/syncer_command.h" |
11 | 11 |
12 namespace browser_sync { | 12 namespace browser_sync { |
13 | 13 |
14 // A syncer command that purges (from memory and disk) entries belonging to | 14 // A syncer command that purges (from memory and disk) entries belonging to |
15 // a ModelType or ServerModelType that the user has not elected to sync. | 15 // a ModelType or ServerModelType that the user has not elected to sync. |
16 // | 16 // |
17 // This is done as part of a session to 1) ensure it does not block the UI, | 17 // This is done as part of a session to 1) ensure it does not block the UI, |
18 // and 2) avoid complicated races that could arise between a) deleting | 18 // and 2) avoid complicated races that could arise between a) deleting |
19 // things b) a sync session trying to use these things c) and the potential | 19 // things b) a sync session trying to use these things c) and the potential |
20 // re-enabling of the data type by the user before some scheduled deletion | 20 // re-enabling of the data type by the user before some scheduled deletion |
(...skipping 14 matching lines...) Expand all Loading... |
35 | 35 |
36 // SyncerCommand implementation. | 36 // SyncerCommand implementation. |
37 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE; | 37 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE; |
38 | 38 |
39 private: | 39 private: |
40 DISALLOW_COPY_AND_ASSIGN(CleanupDisabledTypesCommand); | 40 DISALLOW_COPY_AND_ASSIGN(CleanupDisabledTypesCommand); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace browser_sync | 43 } // namespace browser_sync |
44 | 44 |
45 #endif // CHROME_BROWSER_SYNC_ENGINE_CLEANUP_DISABLED_TYPES_COMMAND_H_ | 45 #endif // SYNC_ENGINE_CLEANUP_DISABLED_TYPES_COMMAND_H_ |
46 | 46 |
OLD | NEW |