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_WRITE_NODE_H_ | 5 #ifndef COMPONENTS_SYNC_SYNCABLE_WRITE_NODE_H_ |
6 #define COMPONENTS_SYNC_SYNCABLE_WRITE_NODE_H_ | 6 #define COMPONENTS_SYNC_SYNCABLE_WRITE_NODE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "components/sync/base/model_type.h" | 17 #include "components/sync/base/model_type.h" |
18 #include "components/sync/syncable/base_node.h" | 18 #include "components/sync/syncable/base_node.h" |
19 | 19 |
20 namespace sync_pb { | 20 namespace sync_pb { |
21 class BookmarkSpecifics; | 21 class BookmarkSpecifics; |
22 class EntitySpecifics; | 22 class EntitySpecifics; |
23 class NigoriSpecifics; | 23 class NigoriSpecifics; |
24 class PasswordSpecificsData; | 24 class PasswordSpecificsData; |
25 class TypedUrlSpecifics; | 25 class TypedUrlSpecifics; |
26 } | 26 } |
27 | 27 |
28 namespace syncer { | 28 namespace syncer { |
29 | 29 |
30 class Cryptographer; | |
31 class WriteTransaction; | 30 class WriteTransaction; |
32 | 31 |
33 namespace syncable { | 32 namespace syncable { |
34 class Id; | 33 class Id; |
35 class Entry; | 34 class Entry; |
36 class MutableEntry; | 35 class MutableEntry; |
37 } | 36 } |
38 | 37 |
39 // WriteNode extends BaseNode to add mutation, and wraps | 38 // WriteNode extends BaseNode to add mutation, and wraps |
40 // syncable::MutableEntry. A WriteTransaction is needed to create a WriteNode. | 39 // syncable::MutableEntry. A WriteTransaction is needed to create a WriteNode. |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 172 |
174 // The sync API transaction that is the parent of this node. | 173 // The sync API transaction that is the parent of this node. |
175 WriteTransaction* transaction_; | 174 WriteTransaction* transaction_; |
176 | 175 |
177 DISALLOW_COPY_AND_ASSIGN(WriteNode); | 176 DISALLOW_COPY_AND_ASSIGN(WriteNode); |
178 }; | 177 }; |
179 | 178 |
180 } // namespace syncer | 179 } // namespace syncer |
181 | 180 |
182 #endif // COMPONENTS_SYNC_SYNCABLE_WRITE_NODE_H_ | 181 #endif // COMPONENTS_SYNC_SYNCABLE_WRITE_NODE_H_ |
OLD | NEW |