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 "components/sync/core/write_node.h" | 5 #include "components/sync/syncable/write_node.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "components/sync/base/cryptographer.h" | 12 #include "components/sync/base/cryptographer.h" |
13 #include "components/sync/core/base_transaction.h" | |
14 #include "components/sync/core/write_transaction.h" | |
15 #include "components/sync/core_impl/syncapi_internal.h" | 13 #include "components/sync/core_impl/syncapi_internal.h" |
16 #include "components/sync/protocol/bookmark_specifics.pb.h" | 14 #include "components/sync/protocol/bookmark_specifics.pb.h" |
17 #include "components/sync/protocol/typed_url_specifics.pb.h" | 15 #include "components/sync/protocol/typed_url_specifics.pb.h" |
| 16 #include "components/sync/syncable/base_transaction.h" |
18 #include "components/sync/syncable/mutable_entry.h" | 17 #include "components/sync/syncable/mutable_entry.h" |
19 #include "components/sync/syncable/nigori_util.h" | 18 #include "components/sync/syncable/nigori_util.h" |
20 #include "components/sync/syncable/syncable_util.h" | 19 #include "components/sync/syncable/syncable_util.h" |
| 20 #include "components/sync/syncable/write_transaction.h" |
21 | 21 |
22 using std::string; | 22 using std::string; |
23 using std::vector; | 23 using std::vector; |
24 | 24 |
25 namespace syncer { | 25 namespace syncer { |
26 | 26 |
27 using syncable::kEncryptedString; | 27 using syncable::kEncryptedString; |
28 using syncable::SPECIFICS; | 28 using syncable::SPECIFICS; |
29 | 29 |
30 static const char kDefaultNameForNewNodes[] = " "; | 30 static const char kDefaultNameForNewNodes[] = " "; |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 syncable::Id predecessor_id = | 469 syncable::Id predecessor_id = |
470 predecessor ? predecessor->GetSyncId() : syncable::Id(); | 470 predecessor ? predecessor->GetSyncId() : syncable::Id(); |
471 return entry_->PutPredecessor(predecessor_id); | 471 return entry_->PutPredecessor(predecessor_id); |
472 } | 472 } |
473 | 473 |
474 void WriteNode::MarkForSyncing() { | 474 void WriteNode::MarkForSyncing() { |
475 syncable::MarkForSyncing(entry_); | 475 syncable::MarkForSyncing(entry_); |
476 } | 476 } |
477 | 477 |
478 } // namespace syncer | 478 } // namespace syncer |
OLD | NEW |