Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: sync/internal_api/public/write_node.h

Issue 10985008: sync: Add DeviceInfo protobuf and supporting code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another missing include Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/public/base_node.h ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sync/internal_api/public/base_node.h ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698