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

Side by Side Diff: components/sync/syncable/syncable_model_neutral_write_transaction.cc

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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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/syncable/syncable_model_neutral_write_transaction.h" 5 #include "components/sync/syncable/syncable_model_neutral_write_transaction.h"
6 6
7 #include "sync/syncable/directory.h" 7 #include "components/sync/syncable/directory.h"
8 8
9 namespace syncer { 9 namespace syncer {
10 namespace syncable { 10 namespace syncable {
11 11
12 ModelNeutralWriteTransaction::ModelNeutralWriteTransaction( 12 ModelNeutralWriteTransaction::ModelNeutralWriteTransaction(
13 const tracked_objects::Location& location, 13 const tracked_objects::Location& location,
14 WriterTag writer, Directory* directory) 14 WriterTag writer,
15 Directory* directory)
15 : BaseWriteTransaction(location, 16 : BaseWriteTransaction(location,
16 "ModelNeutralWriteTransaction", 17 "ModelNeutralWriteTransaction",
17 writer, 18 writer,
18 directory) { 19 directory) {
19 Lock(); 20 Lock();
20 } 21 }
21 22
22 ModelNeutralWriteTransaction::~ModelNeutralWriteTransaction() { 23 ModelNeutralWriteTransaction::~ModelNeutralWriteTransaction() {
23 directory()->CheckInvariantsOnTransactionClose(this, modified_handles_); 24 directory()->CheckInvariantsOnTransactionClose(this, modified_handles_);
24 HandleUnrecoverableErrorIfSet(); 25 HandleUnrecoverableErrorIfSet();
25 Unlock(); 26 Unlock();
26 } 27 }
27 28
28 void ModelNeutralWriteTransaction::TrackChangesTo(const EntryKernel* entry) { 29 void ModelNeutralWriteTransaction::TrackChangesTo(const EntryKernel* entry) {
29 modified_handles_.insert(entry->ref(META_HANDLE)); 30 modified_handles_.insert(entry->ref(META_HANDLE));
30 } 31 }
31 32
32 } // namespace syncable 33 } // namespace syncable
33 } // namespace syncer 34 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/syncable/syncable_model_neutral_write_transaction.h ('k') | components/sync/syncable/syncable_proto_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698