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 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DISTILLER_PAGE_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DISTILLER_PAGE_H_ |
6 #define COMPONENTS_DOM_DISTILLER_CORE_DISTILLER_PAGE_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_DISTILLER_PAGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "third_party/dom_distiller_js/dom_distiller.pb.h" | 14 #include "third_party/dom_distiller_js/dom_distiller.pb.h" |
15 #include "ui/gfx/size.h" | 15 #include "ui/gfx/geometry/size.h" |
16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
17 | 17 |
18 namespace dom_distiller { | 18 namespace dom_distiller { |
19 | 19 |
20 class SourcePageHandle { | 20 class SourcePageHandle { |
21 public: | 21 public: |
22 virtual ~SourcePageHandle() {} | 22 virtual ~SourcePageHandle() {} |
23 }; | 23 }; |
24 | 24 |
25 // Injects JavaScript into a page, and uses it to extract and return long-form | 25 // Injects JavaScript into a page, and uses it to extract and return long-form |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // used. | 71 // used. |
72 virtual scoped_ptr<DistillerPage> CreateDistillerPage( | 72 virtual scoped_ptr<DistillerPage> CreateDistillerPage( |
73 const gfx::Size& render_view_size) const = 0; | 73 const gfx::Size& render_view_size) const = 0; |
74 virtual scoped_ptr<DistillerPage> CreateDistillerPageWithHandle( | 74 virtual scoped_ptr<DistillerPage> CreateDistillerPageWithHandle( |
75 scoped_ptr<SourcePageHandle> handle) const = 0; | 75 scoped_ptr<SourcePageHandle> handle) const = 0; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace dom_distiller | 78 } // namespace dom_distiller |
79 | 79 |
80 #endif // COMPONENTS_DOM_DISTILLER_CORE_DISTILLER_PAGE_H_ | 80 #endif // COMPONENTS_DOM_DISTILLER_CORE_DISTILLER_PAGE_H_ |
OLD | NEW |