Chromium Code Reviews| Index: sync/engine/syncer.h |
| diff --git a/sync/engine/syncer.h b/sync/engine/syncer.h |
| index e1e5eac45d35e535becec46d337f3bc2f4117189..0f75f70f00367af3a6664107336c0e193a5be3a9 100644 |
| --- a/sync/engine/syncer.h |
| +++ b/sync/engine/syncer.h |
| @@ -21,6 +21,8 @@ |
| namespace syncer { |
| +class CancellationSignal; |
| + |
| // A Syncer provides a control interface for driving the individual steps |
| // of the sync cycle. Each cycle (hopefully) moves the client into closer |
| // synchronization with the server. The individual steps are modeled |
| @@ -35,13 +37,10 @@ class SYNC_EXPORT_PRIVATE Syncer { |
| public: |
| typedef std::vector<int64> UnsyncedMetaHandles; |
| - Syncer(); |
| + Syncer(CancellationSignal* cancellation_signal); |
| virtual ~Syncer(); |
| - // Called by other threads to tell the syncer to stop what it's doing |
| - // and return early from SyncShare, if possible. |
| bool ExitRequested(); |
| - void RequestEarlyExit(); |
| // Fetches and applies updates, resolves conflicts and commits local changes |
| // for |request_types| as necessary until client and server states are in |
| @@ -79,8 +78,7 @@ class SYNC_EXPORT_PRIVATE Syncer { |
| sessions::SyncSession* session, |
| sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source); |
| - bool early_exit_requested_; |
| - base::Lock early_exit_requested_lock_; |
| + syncer::CancellationSignal* cancellation_signal_; |
|
akalin
2013/09/05 16:06:35
const?
rlarocque
2013/09/05 22:37:06
Done.
|
| friend class SyncerTest; |
| FRIEND_TEST_ALL_PREFIXES(SyncerTest, NameClashWithResolver); |