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