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