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

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

Issue 582913002: Make GenericChangeProcessor upload attachments on startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master. Created 6 years, 3 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/api/attachments/README ('k') | sync/internal_api/read_transaction.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_READ_TRANSACTION_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_READ_TRANSACTION_H_
6 #define SYNC_INTERNAL_API_PUBLIC_READ_TRANSACTION_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_READ_TRANSACTION_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "sync/api/attachments/attachment_id.h"
9 #include "sync/base/sync_export.h" 10 #include "sync/base/sync_export.h"
10 #include "sync/internal_api/public/base_transaction.h" 11 #include "sync/internal_api/public/base_transaction.h"
11 12
12 namespace tracked_objects { 13 namespace tracked_objects {
13 class Location; 14 class Location;
14 } // namespace tracked_objects 15 } // namespace tracked_objects
15 16
16 namespace sync_pb { 17 namespace sync_pb {
17 class DataTypeContext; 18 class DataTypeContext;
18 } 19 }
(...skipping 19 matching lines...) Expand all
38 virtual syncable::BaseTransaction* GetWrappedTrans() const OVERRIDE; 39 virtual syncable::BaseTransaction* GetWrappedTrans() const OVERRIDE;
39 40
40 // Return |transaction_version| of |type| stored in sync directory's 41 // Return |transaction_version| of |type| stored in sync directory's
41 // persisted info. 42 // persisted info.
42 int64 GetModelVersion(ModelType type) const; 43 int64 GetModelVersion(ModelType type) const;
43 44
44 // Fills |context| with the datatype context associated with |type|. 45 // Fills |context| with the datatype context associated with |type|.
45 void GetDataTypeContext(ModelType type, 46 void GetDataTypeContext(ModelType type,
46 sync_pb::DataTypeContext* context) const; 47 sync_pb::DataTypeContext* context) const;
47 48
49 // Clears |id_set| and fills it with the ids of attachments that need to be
50 // uploaded to the sync server.
51 void GetAttachmentIdsToUpload(ModelType type, AttachmentIdSet* id_set);
52
48 private: 53 private:
49 void* operator new(size_t size); // Transaction is meant for stack use only. 54 void* operator new(size_t size); // Transaction is meant for stack use only.
50 55
51 // The underlying syncable object which this class wraps. 56 // The underlying syncable object which this class wraps.
52 syncable::BaseTransaction* transaction_; 57 syncable::BaseTransaction* transaction_;
53 bool close_transaction_; 58 bool close_transaction_;
54 59
55 DISALLOW_COPY_AND_ASSIGN(ReadTransaction); 60 DISALLOW_COPY_AND_ASSIGN(ReadTransaction);
56 }; 61 };
57 62
58 } // namespace syncer 63 } // namespace syncer
59 64
60 #endif // SYNC_INTERNAL_API_PUBLIC_READ_TRANSACTION_H_ 65 #endif // SYNC_INTERNAL_API_PUBLIC_READ_TRANSACTION_H_
OLDNEW
« no previous file with comments | « sync/api/attachments/README ('k') | sync/internal_api/read_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698