Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: components/dom_distiller/core/page_distiller.h

Issue 167963003: Support for distilling prior pages in an article. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/dom_distiller/core/distiller_unittest.cc ('k') | components/dom_distiller/core/page_distiller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698