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

Side by Side Diff: sync/internal_api/read_transaction.cc

Issue 1035573002: [Sync] Replace AttachmentIdSet with AttachmentIdList in interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes after Nick's feedback. Created 5 years, 9 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
« no previous file with comments | « sync/internal_api/public/read_transaction.h ('k') | sync/syncable/directory.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 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 #include "sync/internal_api/public/read_transaction.h" 5 #include "sync/internal_api/public/read_transaction.h"
6 6
7 #include "sync/syncable/directory.h" 7 #include "sync/syncable/directory.h"
8 #include "sync/syncable/syncable_read_transaction.h" 8 #include "sync/syncable/syncable_read_transaction.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 void ReadTransaction::GetDataTypeContext( 43 void ReadTransaction::GetDataTypeContext(
44 ModelType type, 44 ModelType type,
45 sync_pb::DataTypeContext* context) const { 45 sync_pb::DataTypeContext* context) const {
46 return transaction_->directory()->GetDataTypeContext( 46 return transaction_->directory()->GetDataTypeContext(
47 transaction_, type, context); 47 transaction_, type, context);
48 } 48 }
49 49
50 void ReadTransaction::GetAttachmentIdsToUpload(ModelType type, 50 void ReadTransaction::GetAttachmentIdsToUpload(ModelType type,
51 AttachmentIdSet* id_set) const { 51 AttachmentIdList* ids) const {
52 DCHECK(id_set); 52 DCHECK(ids);
53 transaction_->directory()->GetAttachmentIdsToUpload( 53 transaction_->directory()->GetAttachmentIdsToUpload(transaction_, type, ids);
54 transaction_, type, id_set);
55 } 54 }
56 55
57 std::string ReadTransaction::GetStoreBirthday() const { 56 std::string ReadTransaction::GetStoreBirthday() const {
58 return transaction_->directory()->store_birthday(); 57 return transaction_->directory()->store_birthday();
59 } 58 }
60 59
61 } // namespace syncer 60 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/read_transaction.h ('k') | sync/syncable/directory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698