| Index: components/dom_distiller/webui/dom_distiller_handler.h
|
| diff --git a/components/dom_distiller/webui/dom_distiller_handler.h b/components/dom_distiller/webui/dom_distiller_handler.h
|
| index 09d39da1df8650022959fdbada8068427b236229..f127f47cf6faff20eb5242d0e7e41725875adb91 100644
|
| --- a/components/dom_distiller/webui/dom_distiller_handler.h
|
| +++ b/components/dom_distiller/webui/dom_distiller_handler.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/values.h"
|
| #include "content/public/browser/web_ui_message_handler.h"
|
| +#include "ui/gfx/size.h"
|
|
|
| namespace dom_distiller {
|
|
|
| @@ -19,7 +20,8 @@ class DomDistillerService;
|
| class DomDistillerHandler : public content::WebUIMessageHandler {
|
| public:
|
| // The lifetime of |service| has to outlive this handler.
|
| - DomDistillerHandler(DomDistillerService* service, const std::string& scheme);
|
| + DomDistillerHandler(DomDistillerService* service, const std::string& scheme,
|
| + const gfx::Size& render_view_size);
|
| virtual ~DomDistillerHandler();
|
|
|
| // content::WebUIMessageHandler implementation.
|
| @@ -53,6 +55,9 @@ class DomDistillerHandler : public content::WebUIMessageHandler {
|
| // The scheme for DOM distiller articles.
|
| std::string article_scheme_;
|
|
|
| + // The size to use for the RenderView created for the new WebContents.
|
| + gfx::Size render_view_size_;
|
| +
|
| // Factory for the creating refs in callbacks.
|
| base::WeakPtrFactory<DomDistillerHandler> weak_ptr_factory_;
|
|
|
|
|