| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |