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/task_tracker.h" | 5 #include "components/dom_distiller/core/task_tracker.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.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/distilled_content_store.h" | 15 #include "components/dom_distiller/core/distilled_content_store.h" |
16 #include "components/dom_distiller/core/proto/distilled_article.pb.h" | 16 #include "components/dom_distiller/core/proto/distilled_article.pb.h" |
17 #include "components/dom_distiller/core/proto/distilled_page.pb.h" | 17 #include "components/dom_distiller/core/proto/distilled_page.pb.h" |
18 | 18 |
19 namespace dom_distiller { | 19 namespace dom_distiller { |
20 | 20 |
21 ViewerHandle::ViewerHandle(CancelCallback callback) | 21 ViewerHandle::ViewerHandle(CancelCallback callback) |
22 : cancel_callback_(callback) {} | 22 : cancel_callback_(callback) {} |
23 | 23 |
24 ViewerHandle::~ViewerHandle() { | 24 ViewerHandle::~ViewerHandle() { |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 void TaskTracker::AddDistilledContentToStore( | 249 void TaskTracker::AddDistilledContentToStore( |
250 const DistilledArticleProto& content) { | 250 const DistilledArticleProto& content) { |
251 if (content_store_) { | 251 if (content_store_) { |
252 content_store_->SaveContent( | 252 content_store_->SaveContent( |
253 entry_, content, DistilledContentStore::SaveCallback()); | 253 entry_, content, DistilledContentStore::SaveCallback()); |
254 } | 254 } |
255 } | 255 } |
256 | 256 |
257 | 257 |
258 } // namespace dom_distiller | 258 } // namespace dom_distiller |
OLD | NEW |