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

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

Issue 247983002: Keep track of which attachments are referenced by which sync entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rework tests and move AttachmentIdProto creation to avoid violating DEPS. Created 6 years, 7 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
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 // Set the experiments specifics. 167 // Set the experiments specifics.
168 // Should only be called if GetModelType() == EXPERIMENTS. 168 // Should only be called if GetModelType() == EXPERIMENTS.
169 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics); 169 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics);
170 170
171 // Set the priority preference specifics. 171 // Set the priority preference specifics.
172 // Should only be called if GetModelType() == PRIORITY_PREFERENCE. 172 // Should only be called if GetModelType() == PRIORITY_PREFERENCE.
173 void SetPriorityPreferenceSpecifics( 173 void SetPriorityPreferenceSpecifics(
174 const sync_pb::PriorityPreferenceSpecifics& specifics); 174 const sync_pb::PriorityPreferenceSpecifics& specifics);
175 175
176 // Set the attachment metadata.
177 void SetAttachmentMetadata(
178 const sync_pb::AttachmentMetadata& attachment_metadata);
179
176 // Implementation of BaseNode's abstract virtual accessors. 180 // Implementation of BaseNode's abstract virtual accessors.
177 virtual const syncable::Entry* GetEntry() const OVERRIDE; 181 virtual const syncable::Entry* GetEntry() const OVERRIDE;
178 182
179 virtual const BaseTransaction* GetTransaction() const OVERRIDE; 183 virtual const BaseTransaction* GetTransaction() const OVERRIDE;
180 184
181 syncable::MutableEntry* GetMutableEntryForTest(); 185 syncable::MutableEntry* GetMutableEntryForTest();
182 186
183 private: 187 private:
184 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, EncryptBookmarksWithLegacyData); 188 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, EncryptBookmarksWithLegacyData);
185 189
(...skipping 11 matching lines...) Expand all
197 201
198 // The sync API transaction that is the parent of this node. 202 // The sync API transaction that is the parent of this node.
199 WriteTransaction* transaction_; 203 WriteTransaction* transaction_;
200 204
201 DISALLOW_COPY_AND_ASSIGN(WriteNode); 205 DISALLOW_COPY_AND_ASSIGN(WriteNode);
202 }; 206 };
203 207
204 } // namespace syncer 208 } // namespace syncer
205 209
206 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ 210 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/base_transaction.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