Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: sync/engine/cleanup_disabled_types_command.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sync/engine/build_commit_command_unittest.cc ('k') | sync/engine/cleanup_disabled_types_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698