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

Side by Side Diff: components/sync/core/read_transaction.h

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. Created 4 years, 4 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 | « components/sync/core/read_node.h ('k') | components/sync/core/shared_model_type_processor.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 #ifndef COMPONENTS_SYNC_CORE_READ_TRANSACTION_H_ 5 #ifndef COMPONENTS_SYNC_CORE_READ_TRANSACTION_H_
6 #define COMPONENTS_SYNC_CORE_READ_TRANSACTION_H_ 6 #define COMPONENTS_SYNC_CORE_READ_TRANSACTION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "components/sync/api/attachments/attachment_id.h" 15 #include "components/sync/api/attachments/attachment_id.h"
16 #include "components/sync/base/sync_export.h"
17 #include "components/sync/core/base_transaction.h" 16 #include "components/sync/core/base_transaction.h"
18 17
19 namespace tracked_objects { 18 namespace tracked_objects {
20 class Location; 19 class Location;
21 } // namespace tracked_objects 20 } // namespace tracked_objects
22 21
23 namespace sync_pb { 22 namespace sync_pb {
24 class DataTypeContext; 23 class DataTypeContext;
25 } 24 }
26 25
27 namespace syncer { 26 namespace syncer {
28 27
29 struct UserShare; 28 struct UserShare;
30 29
31 // Sync API's ReadTransaction is a read-only BaseTransaction. It wraps 30 // Sync API's ReadTransaction is a read-only BaseTransaction. It wraps
32 // a syncable::ReadTransaction. 31 // a syncable::ReadTransaction.
33 class SYNC_EXPORT ReadTransaction : public BaseTransaction { 32 class ReadTransaction : public BaseTransaction {
34 public: 33 public:
35 // Start a new read-only transaction on the specified repository. 34 // Start a new read-only transaction on the specified repository.
36 ReadTransaction(const tracked_objects::Location& from_here, UserShare* share); 35 ReadTransaction(const tracked_objects::Location& from_here, UserShare* share);
37 36
38 // Resume the middle of a transaction. Will not close transaction. 37 // Resume the middle of a transaction. Will not close transaction.
39 ReadTransaction(UserShare* share, syncable::BaseTransaction* trans); 38 ReadTransaction(UserShare* share, syncable::BaseTransaction* trans);
40 39
41 ~ReadTransaction() override; 40 ~ReadTransaction() override;
42 41
43 // BaseTransaction override. 42 // BaseTransaction override.
(...skipping 20 matching lines...) Expand all
64 // The underlying syncable object which this class wraps. 63 // The underlying syncable object which this class wraps.
65 syncable::BaseTransaction* transaction_; 64 syncable::BaseTransaction* transaction_;
66 bool close_transaction_; 65 bool close_transaction_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(ReadTransaction); 67 DISALLOW_COPY_AND_ASSIGN(ReadTransaction);
69 }; 68 };
70 69
71 } // namespace syncer 70 } // namespace syncer
72 71
73 #endif // COMPONENTS_SYNC_CORE_READ_TRANSACTION_H_ 72 #endif // COMPONENTS_SYNC_CORE_READ_TRANSACTION_H_
OLDNEW
« no previous file with comments | « components/sync/core/read_node.h ('k') | components/sync/core/shared_model_type_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698