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_MODEL_CHANGING_SYNCER_COMMAND_H_ | 5 #ifndef SYNC_ENGINE_MODEL_CHANGING_SYNCER_COMMAND_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_MODEL_CHANGING_SYNCER_COMMAND_H_ | 6 #define SYNC_ENGINE_MODEL_CHANGING_SYNCER_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_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 | 12 |
13 namespace browser_sync { | 13 namespace browser_sync { |
14 namespace sessions { | 14 namespace sessions { |
15 class SyncSession; | 15 class SyncSession; |
16 } | 16 } |
17 | 17 |
18 // An abstract SyncerCommand which dispatches its Execute step to the | 18 // An abstract SyncerCommand which dispatches its Execute step to the |
19 // model-safe worker thread. Classes derived from ModelChangingSyncerCommand | 19 // model-safe worker thread. Classes derived from ModelChangingSyncerCommand |
20 // instead of SyncerCommand must implement ModelChangingExecuteImpl instead of | 20 // instead of SyncerCommand must implement ModelChangingExecuteImpl instead of |
21 // ExecuteImpl, but otherwise, the contract is the same. | 21 // ExecuteImpl, but otherwise, the contract is the same. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // StartChangingModel is called to start this command running. | 75 // StartChangingModel is called to start this command running. |
76 // Implementations will implement ModelChangingExecuteImpl and not | 76 // Implementations will implement ModelChangingExecuteImpl and not |
77 // worry about storing the session or setting it. They are given work_session. | 77 // worry about storing the session or setting it. They are given work_session. |
78 sessions::SyncSession* work_session_; | 78 sessions::SyncSession* work_session_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(ModelChangingSyncerCommand); | 80 DISALLOW_COPY_AND_ASSIGN(ModelChangingSyncerCommand); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace browser_sync | 83 } // namespace browser_sync |
84 | 84 |
85 #endif // CHROME_BROWSER_SYNC_ENGINE_MODEL_CHANGING_SYNCER_COMMAND_H_ | 85 #endif // SYNC_ENGINE_MODEL_CHANGING_SYNCER_COMMAND_H_ |
OLD | NEW |