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 #include "components/sync/engine_impl/cycle/sync_cycle.h" | 5 #include "components/sync/engine_impl/cycle/sync_cycle.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "components/sync/base/model_type.h" | |
12 #include "components/sync/engine/model_safe_worker.h" | |
13 #include "components/sync/syncable/directory.h" | 11 #include "components/sync/syncable/directory.h" |
14 | 12 |
15 namespace syncer { | 13 namespace syncer { |
16 | 14 |
17 // static | 15 // static |
18 SyncCycle* SyncCycle::Build(SyncCycleContext* context, Delegate* delegate) { | 16 SyncCycle* SyncCycle::Build(SyncCycleContext* context, Delegate* delegate) { |
19 return new SyncCycle(context, delegate); | 17 return new SyncCycle(context, delegate); |
20 } | 18 } |
21 | 19 |
22 SyncCycle::SyncCycle(SyncCycleContext* context, Delegate* delegate) | 20 SyncCycle::SyncCycle(SyncCycleContext* context, Delegate* delegate) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 FOR_EACH_OBSERVER(SyncEngineEventListener, *(context_->listeners()), | 77 FOR_EACH_OBSERVER(SyncEngineEventListener, *(context_->listeners()), |
80 OnSyncCycleEvent(event)); | 78 OnSyncCycleEvent(event)); |
81 } | 79 } |
82 | 80 |
83 void SyncCycle::SendProtocolEvent(const ProtocolEvent& event) { | 81 void SyncCycle::SendProtocolEvent(const ProtocolEvent& event) { |
84 FOR_EACH_OBSERVER(SyncEngineEventListener, *(context_->listeners()), | 82 FOR_EACH_OBSERVER(SyncEngineEventListener, *(context_->listeners()), |
85 OnProtocolEvent(event)); | 83 OnProtocolEvent(event)); |
86 } | 84 } |
87 | 85 |
88 } // namespace syncer | 86 } // namespace syncer |
OLD | NEW |