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_CORE_READ_NODE_H_ | 5 #ifndef COMPONENTS_SYNC_SYNCABLE_READ_NODE_H_ |
6 #define COMPONENTS_SYNC_CORE_READ_NODE_H_ | 6 #define COMPONENTS_SYNC_SYNCABLE_READ_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 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "components/sync/base/model_type.h" | 15 #include "components/sync/base/model_type.h" |
16 #include "components/sync/core/base_node.h" | 16 #include "components/sync/syncable/base_node.h" |
17 | 17 |
18 namespace syncer { | 18 namespace syncer { |
19 | 19 |
20 // ReadNode wraps a syncable::Entry to provide the functionality of a | 20 // ReadNode wraps a syncable::Entry to provide the functionality of a |
21 // read-only BaseNode. | 21 // read-only BaseNode. |
22 class ReadNode : public BaseNode { | 22 class ReadNode : public BaseNode { |
23 public: | 23 public: |
24 // Create an unpopulated ReadNode on the given transaction. Call some flavor | 24 // Create an unpopulated ReadNode on the given transaction. Call some flavor |
25 // of Init to populate the ReadNode with a database entry. | 25 // of Init to populate the ReadNode with a database entry. |
26 explicit ReadNode(const BaseTransaction* transaction); | 26 explicit ReadNode(const BaseTransaction* transaction); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 syncable::Entry* entry_; | 68 syncable::Entry* entry_; |
69 | 69 |
70 // The sync API transaction that is the parent of this node. | 70 // The sync API transaction that is the parent of this node. |
71 const BaseTransaction* transaction_; | 71 const BaseTransaction* transaction_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(ReadNode); | 73 DISALLOW_COPY_AND_ASSIGN(ReadNode); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace syncer | 76 } // namespace syncer |
77 | 77 |
78 #endif // COMPONENTS_SYNC_CORE_READ_NODE_H_ | 78 #endif // COMPONENTS_SYNC_SYNCABLE_READ_NODE_H_ |
OLD | NEW |