OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_SYNC_INTERNAL_API_READ_NODE_H_ | 5 #ifndef SYNC_INTERNAL_API_READ_NODE_H_ |
6 #define CHROME_BROWSER_SYNC_INTERNAL_API_READ_NODE_H_ | 6 #define SYNC_INTERNAL_API_READ_NODE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "chrome/browser/sync/internal_api/base_node.h" | 13 #include "sync/internal_api/base_node.h" |
14 #include "sync/syncable/model_type.h" | 14 #include "sync/syncable/model_type.h" |
15 | 15 |
16 namespace sync_api { | 16 namespace sync_api { |
17 | 17 |
18 // ReadNode wraps a syncable::Entry to provide the functionality of a | 18 // ReadNode wraps a syncable::Entry to provide the functionality of a |
19 // read-only BaseNode. | 19 // read-only BaseNode. |
20 class ReadNode : public BaseNode { | 20 class ReadNode : public BaseNode { |
21 public: | 21 public: |
22 // Create an unpopulated ReadNode on the given transaction. Call some flavor | 22 // Create an unpopulated ReadNode on the given transaction. Call some flavor |
23 // of Init to populate the ReadNode with a database entry. | 23 // of Init to populate the ReadNode with a database entry. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 syncable::Entry* entry_; | 56 syncable::Entry* entry_; |
57 | 57 |
58 // The sync API transaction that is the parent of this node. | 58 // The sync API transaction that is the parent of this node. |
59 const BaseTransaction* transaction_; | 59 const BaseTransaction* transaction_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(ReadNode); | 61 DISALLOW_COPY_AND_ASSIGN(ReadNode); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace sync_api | 64 } // namespace sync_api |
65 | 65 |
66 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_READ_NODE_H_ | 66 #endif // SYNC_INTERNAL_API_READ_NODE_H_ |
OLD | NEW |