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

Side by Side Diff: sync/syncable/syncable_model_neutral_write_transaction.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SYNC_SYNCABLE_SYNCABLE_MODEL_NEUTRAL_WRITE_TRANSACTION_H_
6 #define SYNC_SYNCABLE_SYNCABLE_MODEL_NEUTRAL_WRITE_TRANSACTION_H_
7
8 #include "base/macros.h"
9 #include "sync/base/sync_export.h"
10 #include "sync/syncable/metahandle_set.h"
11 #include "sync/syncable/syncable_base_write_transaction.h"
12
13 namespace syncer {
14 namespace syncable {
15
16 // A transaction used to instantiate Entries or ModelNeutralMutableEntries.
17 //
18 // This allows it to be used when making changes to sync entity properties that
19 // do not need to be kept in sync with the associated native model.
20 //
21 // This class differs internally from WriteTransactions in that it does a less
22 // good job of tracking and reporting on changes to the entries modified within
23 // its scope. This is because its changes do not need to be reported to the
24 // DirectoryChangeDelegate.
25 class SYNC_EXPORT ModelNeutralWriteTransaction : public BaseWriteTransaction {
26 public:
27 ModelNeutralWriteTransaction(
28 const tracked_objects::Location& location,
29 WriterTag writer,
30 Directory* directory);
31 ~ModelNeutralWriteTransaction() override;
32
33 void TrackChangesTo(const EntryKernel* entry) override;
34
35 private:
36 MetahandleSet modified_handles_;
37
38 DISALLOW_COPY_AND_ASSIGN(ModelNeutralWriteTransaction);
39 };
40
41 } // namespace syncable
42 } // namespace syncer
43
44 #endif // SYNC_SYNCABLE_SYNCABLE_MODEL_NEUTRAL_WRITE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « sync/syncable/syncable_id_unittest.cc ('k') | sync/syncable/syncable_model_neutral_write_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698