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