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_SYNCABLE_MUTABLE_ENTRY_H_ | 5 #ifndef COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_ |
6 #define COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_ | 6 #define COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "components/sync/base/model_type.h" | 13 #include "components/sync/base/model_type.h" |
14 #include "components/sync/syncable/entry.h" | 14 #include "components/sync/syncable/entry.h" |
15 #include "components/sync/syncable/metahandle_set.h" | 15 #include "components/sync/syncable/metahandle_set.h" |
16 #include "components/sync/syncable/model_neutral_mutable_entry.h" | 16 #include "components/sync/syncable/model_neutral_mutable_entry.h" |
17 | 17 |
18 namespace syncer { | 18 namespace syncer { |
19 | 19 |
20 class WriteNode; | |
21 | |
22 namespace syncable { | 20 namespace syncable { |
23 | 21 |
24 enum Create { CREATE }; | 22 enum Create { CREATE }; |
25 | 23 |
26 class WriteTransaction; | 24 class WriteTransaction; |
27 | 25 |
28 // A mutable meta entry. Changes get committed to the database when the | 26 // A mutable meta entry. Changes get committed to the database when the |
29 // WriteTransaction is destroyed. | 27 // WriteTransaction is destroyed. |
30 class MutableEntry : public ModelNeutralMutableEntry { | 28 class MutableEntry : public ModelNeutralMutableEntry { |
31 void Init(WriteTransaction* trans, | 29 void Init(WriteTransaction* trans, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 DISALLOW_COPY_AND_ASSIGN(MutableEntry); | 85 DISALLOW_COPY_AND_ASSIGN(MutableEntry); |
88 }; | 86 }; |
89 | 87 |
90 // This function sets only the flags needed to get this entry to sync. | 88 // This function sets only the flags needed to get this entry to sync. |
91 bool MarkForSyncing(syncable::MutableEntry* e); | 89 bool MarkForSyncing(syncable::MutableEntry* e); |
92 | 90 |
93 } // namespace syncable | 91 } // namespace syncable |
94 } // namespace syncer | 92 } // namespace syncer |
95 | 93 |
96 #endif // COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_ | 94 #endif // COMPONENTS_SYNC_SYNCABLE_MUTABLE_ENTRY_H_ |
OLD | NEW |