| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/syncable/write_transaction.h" | 5 #include "sync/syncable/write_transaction.h" |
| 6 | 6 |
| 7 #include "sync/syncable/directory.h" | 7 #include "sync/syncable/directory.h" |
| 8 #include "sync/syncable/directory_change_delegate.h" | 8 #include "sync/syncable/directory_change_delegate.h" |
| 9 #include "sync/syncable/transaction_observer.h" | 9 #include "sync/syncable/transaction_observer.h" |
| 10 #include "sync/syncable/write_transaction_info.h" | 10 #include "sync/syncable/write_transaction_info.h" |
| 11 | 11 |
| 12 namespace syncer { |
| 12 namespace syncable { | 13 namespace syncable { |
| 13 | 14 |
| 14 WriteTransaction::WriteTransaction(const tracked_objects::Location& location, | 15 WriteTransaction::WriteTransaction(const tracked_objects::Location& location, |
| 15 WriterTag writer, Directory* directory) | 16 WriterTag writer, Directory* directory) |
| 16 : BaseTransaction(location, "WriteTransaction", writer, directory) { | 17 : BaseTransaction(location, "WriteTransaction", writer, directory) { |
| 17 Lock(); | 18 Lock(); |
| 18 } | 19 } |
| 19 | 20 |
| 20 void WriteTransaction::SaveOriginal(const EntryKernel* entry) { | 21 void WriteTransaction::SaveOriginal(const EntryKernel* entry) { |
| 21 if (!entry) { | 22 if (!entry) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 ENUM_CASE(PURGE_ENTRIES); | 133 ENUM_CASE(PURGE_ENTRIES); |
| 133 ENUM_CASE(SYNCAPI); | 134 ENUM_CASE(SYNCAPI); |
| 134 }; | 135 }; |
| 135 NOTREACHED(); | 136 NOTREACHED(); |
| 136 return ""; | 137 return ""; |
| 137 } | 138 } |
| 138 | 139 |
| 139 #undef ENUM_CASE | 140 #undef ENUM_CASE |
| 140 | 141 |
| 141 } // namespace syncable | 142 } // namespace syncable |
| 143 } // namespace syncer |
| OLD | NEW |