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 SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 void SetTypedUrlSpecifics(const sync_pb::TypedUrlSpecifics& specifics); | 157 void SetTypedUrlSpecifics(const sync_pb::TypedUrlSpecifics& specifics); |
158 | 158 |
159 // Set the extension specifics (id, update url, enabled state, etc). | 159 // Set the extension specifics (id, update url, enabled state, etc). |
160 // Should only be called if GetModelType() == EXTENSIONS. | 160 // Should only be called if GetModelType() == EXTENSIONS. |
161 void SetExtensionSpecifics(const sync_pb::ExtensionSpecifics& specifics); | 161 void SetExtensionSpecifics(const sync_pb::ExtensionSpecifics& specifics); |
162 | 162 |
163 // Set the session specifics (windows, tabs, navigations etc.). | 163 // Set the session specifics (windows, tabs, navigations etc.). |
164 // Should only be called if GetModelType() == SESSIONS. | 164 // Should only be called if GetModelType() == SESSIONS. |
165 void SetSessionSpecifics(const sync_pb::SessionSpecifics& specifics); | 165 void SetSessionSpecifics(const sync_pb::SessionSpecifics& specifics); |
166 | 166 |
| 167 // Set the device info specifics. |
| 168 // Should only be called if GetModelType() == DEVICE_INFO. |
| 169 void SetDeviceInfoSpecifics(const sync_pb::DeviceInfoSpecifics& specifics); |
| 170 |
167 // Implementation of BaseNode's abstract virtual accessors. | 171 // Implementation of BaseNode's abstract virtual accessors. |
168 virtual const syncable::Entry* GetEntry() const OVERRIDE; | 172 virtual const syncable::Entry* GetEntry() const OVERRIDE; |
169 | 173 |
170 virtual const BaseTransaction* GetTransaction() const OVERRIDE; | 174 virtual const BaseTransaction* GetTransaction() const OVERRIDE; |
171 | 175 |
172 syncable::MutableEntry* GetMutableEntryForTest(); | 176 syncable::MutableEntry* GetMutableEntryForTest(); |
173 | 177 |
174 private: | 178 private: |
175 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, EncryptBookmarksWithLegacyData); | 179 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, EncryptBookmarksWithLegacyData); |
176 | 180 |
(...skipping 14 matching lines...) Expand all Loading... |
191 | 195 |
192 // The sync API transaction that is the parent of this node. | 196 // The sync API transaction that is the parent of this node. |
193 WriteTransaction* transaction_; | 197 WriteTransaction* transaction_; |
194 | 198 |
195 DISALLOW_COPY_AND_ASSIGN(WriteNode); | 199 DISALLOW_COPY_AND_ASSIGN(WriteNode); |
196 }; | 200 }; |
197 | 201 |
198 } // namespace syncer | 202 } // namespace syncer |
199 | 203 |
200 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 204 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
OLD | NEW |