OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ | 5 #ifndef SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ |
6 #define SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ | 6 #define SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ |
7 | 7 |
8 #include "sync/base/sync_export.h" | 8 #include "sync/base/sync_export.h" |
9 #include "sync/internal_api/public/base/model_type.h" | 9 #include "sync/internal_api/public/base/model_type.h" |
10 #include "sync/syncable/entry.h" | 10 #include "sync/syncable/entry.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 CreateNewUpdateItem, | 31 CreateNewUpdateItem, |
32 const Id& id); | 32 const Id& id); |
33 ModelNeutralMutableEntry(BaseWriteTransaction* trans, GetByHandle, int64); | 33 ModelNeutralMutableEntry(BaseWriteTransaction* trans, GetByHandle, int64); |
34 ModelNeutralMutableEntry(BaseWriteTransaction* trans, GetById, const Id&); | 34 ModelNeutralMutableEntry(BaseWriteTransaction* trans, GetById, const Id&); |
35 ModelNeutralMutableEntry( | 35 ModelNeutralMutableEntry( |
36 BaseWriteTransaction* trans, | 36 BaseWriteTransaction* trans, |
37 GetByClientTag, | 37 GetByClientTag, |
38 const std::string& tag); | 38 const std::string& tag); |
39 ModelNeutralMutableEntry( | 39 ModelNeutralMutableEntry( |
40 BaseWriteTransaction* trans, | 40 BaseWriteTransaction* trans, |
41 GetByServerTag, | 41 GetTypeRoot, |
42 const std::string& tag); | 42 ModelType type); |
43 | 43 |
44 inline BaseWriteTransaction* base_write_transaction() const { | 44 inline BaseWriteTransaction* base_write_transaction() const { |
45 return base_write_transaction_; | 45 return base_write_transaction_; |
46 } | 46 } |
47 | 47 |
48 // Non-model-changing setters. These setters will change properties internal | 48 // Non-model-changing setters. These setters will change properties internal |
49 // to the node. These fields are important for bookkeeping in the sync | 49 // to the node. These fields are important for bookkeeping in the sync |
50 // internals, but it is not necessary to communicate changes in these fields | 50 // internals, but it is not necessary to communicate changes in these fields |
51 // to the local models. | 51 // to the local models. |
52 // | 52 // |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Scope: Set on construction, never changed after that. | 107 // Scope: Set on construction, never changed after that. |
108 BaseWriteTransaction* const base_write_transaction_; | 108 BaseWriteTransaction* const base_write_transaction_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(ModelNeutralMutableEntry); | 110 DISALLOW_COPY_AND_ASSIGN(ModelNeutralMutableEntry); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace syncable | 113 } // namespace syncable |
114 } // namespace syncer | 114 } // namespace syncer |
115 | 115 |
116 #endif // SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ | 116 #endif // SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ |
OLD | NEW |