| 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 SYNC_INTERNAL_API_PUBLIC_SESSIONS_MODEL_NEUTRAL_STATE_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_SESSIONS_MODEL_NEUTRAL_STATE_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ |
| 7 | 7 |
| 8 #include "sync/base/sync_export.h" | 8 #include "components/sync/base/model_type.h" |
| 9 #include "sync/internal_api/public/base/model_type.h" | 9 #include "components/sync/base/sync_export.h" |
| 10 #include "sync/internal_api/public/util/syncer_error.h" | 10 #include "components/sync/base/syncer_error.h" |
| 11 #include "sync/protocol/sync.pb.h" | 11 #include "components/sync/protocol/sync.pb.h" |
| 12 | 12 |
| 13 namespace syncer { | 13 namespace syncer { |
| 14 namespace sessions { | 14 namespace sessions { |
| 15 | 15 |
| 16 // Grouping of all state that applies to all model types. Note that some | 16 // Grouping of all state that applies to all model types. Note that some |
| 17 // components of the global grouping can internally implement finer grained | 17 // components of the global grouping can internally implement finer grained |
| 18 // scope control, but the top level entity is still a singleton with respect to | 18 // scope control, but the top level entity is still a singleton with respect to |
| 19 // model types. | 19 // model types. |
| 20 struct SYNC_EXPORT ModelNeutralState { | 20 struct SYNC_EXPORT ModelNeutralState { |
| 21 ModelNeutralState(); | 21 ModelNeutralState(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // Set to true by PostCommitMessageCommand if any commits were successful. | 57 // Set to true by PostCommitMessageCommand if any commits were successful. |
| 58 bool items_committed; | 58 bool items_committed; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 SYNC_EXPORT bool HasSyncerError(const ModelNeutralState& state); | 61 SYNC_EXPORT bool HasSyncerError(const ModelNeutralState& state); |
| 62 | 62 |
| 63 } // namespace sessions | 63 } // namespace sessions |
| 64 } // namespace syncer | 64 } // namespace syncer |
| 65 | 65 |
| 66 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_MODEL_NEUTRAL_STATE_H_ | 66 #endif // COMPONENTS_SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ |
| OLD | NEW |