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 // This file defines the "sync API", an interface to the syncer | 5 // This file defines the "sync API", an interface to the syncer |
6 // backend that exposes (1) the core functionality of maintaining a consistent | 6 // backend that exposes (1) the core functionality of maintaining a consistent |
7 // local snapshot of a hierarchical object set; (2) a means to transactionally | 7 // local snapshot of a hierarchical object set; (2) a means to transactionally |
8 // access and modify those objects; (3) a means to control client/server | 8 // access and modify those objects; (3) a means to control client/server |
9 // synchronization tasks, namely: pushing local object modifications to a | 9 // synchronization tasks, namely: pushing local object modifications to a |
10 // server, pulling nonlocal object modifications from a server to this client, | 10 // server, pulling nonlocal object modifications from a server to this client, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 class WriteTransaction; | 84 class WriteTransaction; |
85 } | 85 } |
86 | 86 |
87 namespace sync_pb { | 87 namespace sync_pb { |
88 class AppSpecifics; | 88 class AppSpecifics; |
89 class AutofillSpecifics; | 89 class AutofillSpecifics; |
90 class AutofillProfileSpecifics; | 90 class AutofillProfileSpecifics; |
91 class BookmarkSpecifics; | 91 class BookmarkSpecifics; |
92 class EntitySpecifics; | 92 class EntitySpecifics; |
93 class ExtensionSpecifics; | 93 class ExtensionSpecifics; |
94 class SearchEngineSpecifics; | |
94 class SessionSpecifics; | 95 class SessionSpecifics; |
95 class NigoriSpecifics; | 96 class NigoriSpecifics; |
96 class PasswordSpecifics; | 97 class PasswordSpecifics; |
97 class PreferenceSpecifics; | 98 class PreferenceSpecifics; |
98 class PasswordSpecifics; | 99 class PasswordSpecifics; |
99 class PasswordSpecificsData; | 100 class PasswordSpecificsData; |
100 class ThemeSpecifics; | 101 class ThemeSpecifics; |
101 class TypedUrlSpecifics; | 102 class TypedUrlSpecifics; |
102 } | 103 } |
103 | 104 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
247 const sync_pb::ThemeSpecifics& GetThemeSpecifics() const; | 248 const sync_pb::ThemeSpecifics& GetThemeSpecifics() const; |
248 | 249 |
249 // Getter specific to the TYPED_URLS datatype. Returns protobuf | 250 // Getter specific to the TYPED_URLS datatype. Returns protobuf |
250 // data. Can only be called if GetModelType() == TYPED_URLS. | 251 // data. Can only be called if GetModelType() == TYPED_URLS. |
251 const sync_pb::TypedUrlSpecifics& GetTypedUrlSpecifics() const; | 252 const sync_pb::TypedUrlSpecifics& GetTypedUrlSpecifics() const; |
252 | 253 |
253 // Getter specific to the EXTENSIONS datatype. Returns protobuf | 254 // Getter specific to the EXTENSIONS datatype. Returns protobuf |
254 // data. Can only be called if GetModelType() == EXTENSIONS. | 255 // data. Can only be called if GetModelType() == EXTENSIONS. |
255 const sync_pb::ExtensionSpecifics& GetExtensionSpecifics() const; | 256 const sync_pb::ExtensionSpecifics& GetExtensionSpecifics() const; |
256 | 257 |
258 // Getter specific to the SEARCH_ENGINES datatype. Returns protobuf | |
259 // data. Can only be called if GetModelType() == SEARCH_ENGINES. | |
260 const sync_pb::SearchEngineSpecifics& GetSearchEngineSpecifics() const; | |
Nicolas Zea
2011/06/20 20:10:54
Since you're using the new SyncAPI this is not nec
SteveT
2011/06/22 14:02:52
Ah that's right. This is the BaseNode which I no l
| |
261 | |
257 // Getter specific to the SESSIONS datatype. Returns protobuf | 262 // Getter specific to the SESSIONS datatype. Returns protobuf |
258 // data. Can only be called if GetModelType() == SESSIONS. | 263 // data. Can only be called if GetModelType() == SESSIONS. |
259 const sync_pb::SessionSpecifics& GetSessionSpecifics() const; | 264 const sync_pb::SessionSpecifics& GetSessionSpecifics() const; |
260 | 265 |
261 const sync_pb::EntitySpecifics& GetEntitySpecifics() const; | 266 const sync_pb::EntitySpecifics& GetEntitySpecifics() const; |
262 | 267 |
263 // Returns the local external ID associated with the node. | 268 // Returns the local external ID associated with the node. |
264 int64 GetExternalId() const; | 269 int64 GetExternalId() const; |
265 | 270 |
266 // Return the ID of the node immediately before this in the sibling order. | 271 // Return the ID of the node immediately before this in the sibling order. |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1054 private: | 1059 private: |
1055 // An opaque pointer to the nested private class. | 1060 // An opaque pointer to the nested private class. |
1056 SyncInternal* data_; | 1061 SyncInternal* data_; |
1057 | 1062 |
1058 DISALLOW_COPY_AND_ASSIGN(SyncManager); | 1063 DISALLOW_COPY_AND_ASSIGN(SyncManager); |
1059 }; | 1064 }; |
1060 | 1065 |
1061 } // namespace sync_api | 1066 } // namespace sync_api |
1062 | 1067 |
1063 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_ | 1068 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_ |
OLD | NEW |