| OLD | NEW |
| 1 // Copyright (c) 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 #include "sync/internal_api/public/write_transaction.h" | 5 #include "sync/internal_api/public/write_transaction.h" |
| 6 | 6 |
| 7 #include "sync/syncable/write_transaction.h" | 7 #include "sync/syncable/syncable_write_transaction.h" |
| 8 | 8 |
| 9 namespace syncer { | 9 namespace syncer { |
| 10 | 10 |
| 11 ////////////////////////////////////////////////////////////////////////// | 11 ////////////////////////////////////////////////////////////////////////// |
| 12 // WriteTransaction member definitions | 12 // WriteTransaction member definitions |
| 13 WriteTransaction::WriteTransaction(const tracked_objects::Location& from_here, | 13 WriteTransaction::WriteTransaction(const tracked_objects::Location& from_here, |
| 14 UserShare* share) | 14 UserShare* share) |
| 15 : BaseTransaction(share), | 15 : BaseTransaction(share), |
| 16 transaction_(NULL) { | 16 transaction_(NULL) { |
| 17 transaction_ = new syncable::WriteTransaction(from_here, syncable::SYNCAPI, | 17 transaction_ = new syncable::WriteTransaction(from_here, syncable::SYNCAPI, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 WriteTransaction::~WriteTransaction() { | 31 WriteTransaction::~WriteTransaction() { |
| 32 delete transaction_; | 32 delete transaction_; |
| 33 } | 33 } |
| 34 | 34 |
| 35 syncable::BaseTransaction* WriteTransaction::GetWrappedTrans() const { | 35 syncable::BaseTransaction* WriteTransaction::GetWrappedTrans() const { |
| 36 return transaction_; | 36 return transaction_; |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace syncer | 39 } // namespace syncer |
| OLD | NEW |