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

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

Issue 11734009: sync: Add ControlPreference protobuf and supporting code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Daily rebase Created 7 years, 11 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_unittest.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 void SetSessionSpecifics(const sync_pb::SessionSpecifics& specifics); 159 void SetSessionSpecifics(const sync_pb::SessionSpecifics& specifics);
160 160
161 // Set the device info specifics. 161 // Set the device info specifics.
162 // Should only be called if GetModelType() == DEVICE_INFO. 162 // Should only be called if GetModelType() == DEVICE_INFO.
163 void SetDeviceInfoSpecifics(const sync_pb::DeviceInfoSpecifics& specifics); 163 void SetDeviceInfoSpecifics(const sync_pb::DeviceInfoSpecifics& specifics);
164 164
165 // Set the experiments specifics. 165 // Set the experiments specifics.
166 // Should only be called if GetModelType() == EXPERIMENTS. 166 // Should only be called if GetModelType() == EXPERIMENTS.
167 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics); 167 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics);
168 168
169 // Set the priority preference specifics.
170 // Should only be called if GetModelType() == PRIORITY_PREFERENCE.
171 void SetPriorityPreferenceSpecifics(
172 const sync_pb::PriorityPreferenceSpecifics& specifics);
173
169 // Implementation of BaseNode's abstract virtual accessors. 174 // Implementation of BaseNode's abstract virtual accessors.
170 virtual const syncable::Entry* GetEntry() const OVERRIDE; 175 virtual const syncable::Entry* GetEntry() const OVERRIDE;
171 176
172 virtual const BaseTransaction* GetTransaction() const OVERRIDE; 177 virtual const BaseTransaction* GetTransaction() const OVERRIDE;
173 178
174 syncable::MutableEntry* GetMutableEntryForTest(); 179 syncable::MutableEntry* GetMutableEntryForTest();
175 180
176 private: 181 private:
177 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, EncryptBookmarksWithLegacyData); 182 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, EncryptBookmarksWithLegacyData);
178 183
(...skipping 14 matching lines...) Expand all
193 198
194 // The sync API transaction that is the parent of this node. 199 // The sync API transaction that is the parent of this node.
195 WriteTransaction* transaction_; 200 WriteTransaction* transaction_;
196 201
197 DISALLOW_COPY_AND_ASSIGN(WriteNode); 202 DISALLOW_COPY_AND_ASSIGN(WriteNode);
198 }; 203 };
199 204
200 } // namespace syncer 205 } // namespace syncer
201 206
202 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ 207 #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_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698