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

Side by Side Diff: components/sync/engine_impl/sync_cycle_event.h

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_SYNC_ENGINE_IMPL_SYNC_CYCLE_EVENT_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_CYCLE_EVENT_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_CYCLE_EVENT_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_CYCLE_EVENT_H_
7 7
8 #include "components/sync/sessions/sync_session_snapshot.h" 8 #include "components/sync/engine/cycle/sync_cycle_snapshot.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 struct SyncProtocolError; 12 struct SyncProtocolError;
13 13
14 struct SyncCycleEvent { 14 struct SyncCycleEvent {
15 enum EventCause { 15 enum EventCause {
16 //////////////////////////////////////////////////////////////// 16 ////////////////////////////////////////////////////////////////
17 // Sent on entry of Syncer state machine 17 // Sent on entry of Syncer state machine
18 SYNC_CYCLE_BEGIN, 18 SYNC_CYCLE_BEGIN,
19 19
20 // Sent any time progress is made during a sync cycle. 20 // Sent any time progress is made during a sync cycle.
21 STATUS_CHANGED, 21 STATUS_CHANGED,
22 22
23 // We have reached the SYNCER_END state in the main sync loop. 23 // We have reached the SYNCER_END state in the main sync loop.
24 SYNC_CYCLE_ENDED, 24 SYNC_CYCLE_ENDED,
25 }; 25 };
26 26
27 explicit SyncCycleEvent(EventCause cause); 27 explicit SyncCycleEvent(EventCause cause);
28 ~SyncCycleEvent(); 28 ~SyncCycleEvent();
29 29
30 EventCause what_happened; 30 EventCause what_happened;
31 31
32 // The last session used for syncing. 32 // The last cycle used for syncing.
33 sessions::SyncSessionSnapshot snapshot; 33 SyncCycleSnapshot snapshot;
34 }; 34 };
35 35
36 } // namespace syncer 36 } // namespace syncer
37 37
38 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_CYCLE_EVENT_H_ 38 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_CYCLE_EVENT_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/process_updates_util.cc ('k') | components/sync/engine_impl/sync_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698