| 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_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_ |
| 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 RenderViewHost* render_view_host) OVERRIDE; | 47 RenderViewHost* render_view_host) OVERRIDE; |
| 48 | 48 |
| 49 virtual void DidFailLoad(int64 frame_id, | 49 virtual void DidFailLoad(int64 frame_id, |
| 50 const GURL& validated_url, | 50 const GURL& validated_url, |
| 51 bool is_main_frame, | 51 bool is_main_frame, |
| 52 int error_code, | 52 int error_code, |
| 53 const base::string16& error_description, | 53 const base::string16& error_description, |
| 54 RenderViewHost* render_view_host) OVERRIDE; | 54 RenderViewHost* render_view_host) OVERRIDE; |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 virtual void DistillPageImpl(const GURL& gurl, | 57 virtual void DistillPageImpl(const GURL& url, |
| 58 const std::string& script) OVERRIDE; | 58 const std::string& script) OVERRIDE; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 enum State { | 61 enum State { |
| 62 // The page distiller is idle. | 62 // The page distiller is idle. |
| 63 IDLE, | 63 IDLE, |
| 64 // A page is currently loading. | 64 // A page is currently loading. |
| 65 LOADING_PAGE, | 65 LOADING_PAGE, |
| 66 // There was an error processing the page. | 66 // There was an error processing the page. |
| 67 PAGELOAD_FAILED, | 67 PAGELOAD_FAILED, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 85 std::string script_; | 85 std::string script_; |
| 86 | 86 |
| 87 scoped_ptr<content::WebContents> web_contents_; | 87 scoped_ptr<content::WebContents> web_contents_; |
| 88 content::BrowserContext* browser_context_; | 88 content::BrowserContext* browser_context_; |
| 89 DISALLOW_COPY_AND_ASSIGN(DistillerPageWebContents); | 89 DISALLOW_COPY_AND_ASSIGN(DistillerPageWebContents); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace dom_distiller | 92 } // namespace dom_distiller |
| 93 | 93 |
| 94 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_ | 94 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_ |
| OLD | NEW |