OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_INTERNAL_API_READ_NODE_H_ |
6 #define CHROME_BROWSER_SYNC_INTERNAL_API_READ_NODE_H_ | 6 #define CHROME_BROWSER_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 "chrome/browser/sync/internal_api/base_node.h" | 12 #include "chrome/browser/sync/internal_api/base_node.h" |
13 #include "chrome/browser/sync/syncable/model_type.h" | 13 #include "chrome/browser/sync/syncable/model_type.h" |
14 | 14 |
15 namespace sync_pb { | |
16 class AppSpecifics; | |
17 class AutofillSpecifics; | |
18 class AutofillProfileSpecifics; | |
19 class BookmarkSpecifics; | |
20 class EntitySpecifics; | |
21 class ExtensionSpecifics; | |
22 class SessionSpecifics; | |
23 class NigoriSpecifics; | |
24 class PreferenceSpecifics; | |
25 class PasswordSpecificsData; | |
26 class ThemeSpecifics; | |
27 class TypedUrlSpecifics; | |
28 } | |
29 | |
30 namespace sync_api { | 15 namespace sync_api { |
31 | 16 |
32 // ReadNode wraps a syncable::Entry to provide the functionality of a | 17 // ReadNode wraps a syncable::Entry to provide the functionality of a |
33 // read-only BaseNode. | 18 // read-only BaseNode. |
34 class ReadNode : public BaseNode { | 19 class ReadNode : public BaseNode { |
35 public: | 20 public: |
36 // Create an unpopulated ReadNode on the given transaction. Call some flavor | 21 // Create an unpopulated ReadNode on the given transaction. Call some flavor |
37 // of Init to populate the ReadNode with a database entry. | 22 // of Init to populate the ReadNode with a database entry. |
38 explicit ReadNode(const BaseTransaction* transaction); | 23 explicit ReadNode(const BaseTransaction* transaction); |
39 virtual ~ReadNode(); | 24 virtual ~ReadNode(); |
(...skipping 30 matching lines...) Expand all Loading... |
70 | 55 |
71 // The sync API transaction that is the parent of this node. | 56 // The sync API transaction that is the parent of this node. |
72 const BaseTransaction* transaction_; | 57 const BaseTransaction* transaction_; |
73 | 58 |
74 DISALLOW_COPY_AND_ASSIGN(ReadNode); | 59 DISALLOW_COPY_AND_ASSIGN(ReadNode); |
75 }; | 60 }; |
76 | 61 |
77 } // namespace sync_api | 62 } // namespace sync_api |
78 | 63 |
79 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_READ_NODE_H_ | 64 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_READ_NODE_H_ |
OLD | NEW |