| OLD | NEW |
| 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 "components/dom_distiller/core/dom_distiller_store.h" | 5 #include "components/dom_distiller/core/dom_distiller_store.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "components/dom_distiller/core/article_entry.h" | 16 #include "components/dom_distiller/core/article_entry.h" |
| 17 #include "components/sync/api/sync_change.h" | 17 #include "components/sync/model/sync_change.h" |
| 18 #include "components/sync/protocol/article_specifics.pb.h" | 18 #include "components/sync/protocol/article_specifics.pb.h" |
| 19 #include "components/sync/protocol/sync.pb.h" | 19 #include "components/sync/protocol/sync.pb.h" |
| 20 | 20 |
| 21 using leveldb_proto::ProtoDatabase; | 21 using leveldb_proto::ProtoDatabase; |
| 22 using sync_pb::ArticleSpecifics; | 22 using sync_pb::ArticleSpecifics; |
| 23 using sync_pb::EntitySpecifics; | 23 using sync_pb::EntitySpecifics; |
| 24 using syncer::ModelType; | 24 using syncer::ModelType; |
| 25 using syncer::SyncChange; | 25 using syncer::SyncChange; |
| 26 using syncer::SyncChangeList; | 26 using syncer::SyncChangeList; |
| 27 using syncer::SyncData; | 27 using syncer::SyncData; |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 result.set_num_items_deleted(0); | 485 result.set_num_items_deleted(0); |
| 486 | 486 |
| 487 result.set_pre_association_version(0); | 487 result.set_pre_association_version(0); |
| 488 result.set_num_items_after_association(model_.GetNumEntries()); | 488 result.set_num_items_after_association(model_.GetNumEntries()); |
| 489 result.set_error(error); | 489 result.set_error(error); |
| 490 | 490 |
| 491 return result; | 491 return result; |
| 492 } | 492 } |
| 493 | 493 |
| 494 } // namespace dom_distiller | 494 } // namespace dom_distiller |
| OLD | NEW |