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/core/write_node.h" |
6 | 6 |
7 #include <stdint.h> | |
8 | |
9 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
11 #include "base/values.h" | 9 #include "base/values.h" |
12 #include "components/sync/base/cryptographer.h" | 10 #include "components/sync/base/cryptographer.h" |
13 #include "components/sync/core/base_transaction.h" | 11 #include "components/sync/core/base_transaction.h" |
14 #include "components/sync/core/write_transaction.h" | 12 #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" |
18 #include "components/sync/syncable/mutable_entry.h" | 16 #include "components/sync/syncable/mutable_entry.h" |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 syncable::Id predecessor_id = | 467 syncable::Id predecessor_id = |
470 predecessor ? predecessor->GetSyncId() : syncable::Id(); | 468 predecessor ? predecessor->GetSyncId() : syncable::Id(); |
471 return entry_->PutPredecessor(predecessor_id); | 469 return entry_->PutPredecessor(predecessor_id); |
472 } | 470 } |
473 | 471 |
474 void WriteNode::MarkForSyncing() { | 472 void WriteNode::MarkForSyncing() { |
475 syncable::MarkForSyncing(entry_); | 473 syncable::MarkForSyncing(entry_); |
476 } | 474 } |
477 | 475 |
478 } // namespace syncer | 476 } // namespace syncer |
OLD | NEW |