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

Side by Side Diff: components/sync/engine/cycle/model_neutral_state.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_CYCLE_MODEL_NEUTRAL_STATE_H_
6 #define COMPONENTS_SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ 6 #define COMPONENTS_SYNC_ENGINE_CYCLE_MODEL_NEUTRAL_STATE_H_
7 7
8 #include "components/sync/base/model_type.h" 8 #include "components/sync/base/model_type.h"
9 #include "components/sync/base/syncer_error.h" 9 #include "components/sync/base/syncer_error.h"
10 #include "components/sync/protocol/sync.pb.h" 10 #include "components/sync/protocol/sync.pb.h"
11 11
12 namespace syncer { 12 namespace syncer {
13 namespace sessions {
14 13
15 // Grouping of all state that applies to all model types. Note that some 14 // Grouping of all state that applies to all model types. Note that some
16 // components of the global grouping can internally implement finer grained 15 // components of the global grouping can internally implement finer grained
17 // scope control, but the top level entity is still a singleton with respect to 16 // scope control, but the top level entity is still a singleton with respect to
18 // model types. 17 // model types.
19 struct ModelNeutralState { 18 struct ModelNeutralState {
20 ModelNeutralState(); 19 ModelNeutralState();
21 ModelNeutralState(const ModelNeutralState& other); 20 ModelNeutralState(const ModelNeutralState& other);
22 ~ModelNeutralState(); 21 ~ModelNeutralState();
23 22
(...skipping 28 matching lines...) Expand all
52 SyncerError last_get_key_result; 51 SyncerError last_get_key_result;
53 SyncerError last_download_updates_result; 52 SyncerError last_download_updates_result;
54 SyncerError commit_result; 53 SyncerError commit_result;
55 54
56 // Set to true by PostCommitMessageCommand if any commits were successful. 55 // Set to true by PostCommitMessageCommand if any commits were successful.
57 bool items_committed; 56 bool items_committed;
58 }; 57 };
59 58
60 bool HasSyncerError(const ModelNeutralState& state); 59 bool HasSyncerError(const ModelNeutralState& state);
61 60
62 } // namespace sessions
63 } // namespace syncer 61 } // namespace syncer
64 62
65 #endif // COMPONENTS_SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ 63 #endif // COMPONENTS_SYNC_ENGINE_CYCLE_MODEL_NEUTRAL_STATE_H_
OLDNEW
« no previous file with comments | « components/sync/engine/cycle/commit_counters.cc ('k') | components/sync/engine/cycle/model_neutral_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698