OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_DOM_DISTILLER_CORE_PAGE_DISTILLER_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_PAGE_DISTILLER_H_ |
6 #define COMPONENTS_DOM_DISTILLER_CORE_PAGE_DISTILLER_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_PAGE_DISTILLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "components/dom_distiller/core/distiller_page.h" | 14 #include "components/dom_distiller/core/distiller_page.h" |
15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
16 | 16 |
17 namespace dom_distiller { | 17 namespace dom_distiller { |
18 | 18 |
19 class DistillerImpl; | 19 class DistillerImpl; |
20 | 20 |
21 struct DistilledPageInfo { | 21 struct DistilledPageInfo { |
22 std::string title; | 22 std::string title; |
23 std::string html; | 23 std::string html; |
24 std::string next_page_url; | 24 std::string next_page_url; |
| 25 std::string prev_page_url; |
25 std::vector<std::string> image_urls; | 26 std::vector<std::string> image_urls; |
26 DistilledPageInfo(); | 27 DistilledPageInfo(); |
27 ~DistilledPageInfo(); | 28 ~DistilledPageInfo(); |
28 | 29 |
29 private: | 30 private: |
30 DISALLOW_COPY_AND_ASSIGN(DistilledPageInfo); | 31 DISALLOW_COPY_AND_ASSIGN(DistilledPageInfo); |
31 }; | 32 }; |
32 | 33 |
33 // Distills a single page of an article. | 34 // Distills a single page of an article. |
34 class PageDistiller : public DistillerPage::Delegate { | 35 class PageDistiller : public DistillerPage::Delegate { |
(...skipping 26 matching lines...) Expand all Loading... |
61 | 62 |
62 scoped_ptr<DistillerPage> distiller_page_; | 63 scoped_ptr<DistillerPage> distiller_page_; |
63 PageDistillerCallback page_distiller_callback_; | 64 PageDistillerCallback page_distiller_callback_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(PageDistiller); | 66 DISALLOW_COPY_AND_ASSIGN(PageDistiller); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace dom_distiller | 69 } // namespace dom_distiller |
69 | 70 |
70 #endif // COMPONENTS_DOM_DISTILLER_CORE_PAGE_DISTILLER_H_ | 71 #endif // COMPONENTS_DOM_DISTILLER_CORE_PAGE_DISTILLER_H_ |
OLD | NEW |