| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/dom_distiller/core/distiller_page.h" | 9 #include "components/dom_distiller/core/distiller_page.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // content::WebContentsObserver implementation. | 45 // content::WebContentsObserver implementation. |
| 46 virtual void DidFinishLoad(int64 frame_id, | 46 virtual void DidFinishLoad(int64 frame_id, |
| 47 const GURL& validated_url, | 47 const GURL& validated_url, |
| 48 bool is_main_frame, | 48 bool is_main_frame, |
| 49 RenderViewHost* render_view_host) OVERRIDE; | 49 RenderViewHost* render_view_host) OVERRIDE; |
| 50 | 50 |
| 51 virtual void DidFailLoad(int64 frame_id, | 51 virtual void DidFailLoad(int64 frame_id, |
| 52 const GURL& validated_url, | 52 const GURL& validated_url, |
| 53 bool is_main_frame, | 53 bool is_main_frame, |
| 54 int error_code, | 54 int error_code, |
| 55 const string16& error_description, | 55 const base::string16& error_description, |
| 56 RenderViewHost* render_view_host) OVERRIDE; | 56 RenderViewHost* render_view_host) OVERRIDE; |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 virtual void InitImpl() OVERRIDE; | 59 virtual void InitImpl() OVERRIDE; |
| 60 virtual void LoadURLImpl(const GURL& gurl) OVERRIDE; | 60 virtual void LoadURLImpl(const GURL& gurl) OVERRIDE; |
| 61 virtual void ExecuteJavaScriptImpl(const std::string& script) OVERRIDE; | 61 virtual void ExecuteJavaScriptImpl(const std::string& script) OVERRIDE; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 scoped_ptr<content::WebContents> web_contents_; | 64 scoped_ptr<content::WebContents> web_contents_; |
| 65 content::BrowserContext* browser_context_; | 65 content::BrowserContext* browser_context_; |
| 66 DISALLOW_COPY_AND_ASSIGN(DistillerPageWebContents); | 66 DISALLOW_COPY_AND_ASSIGN(DistillerPageWebContents); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace dom_distiller | 69 } // namespace dom_distiller |
| 70 | 70 |
| 71 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_ | 71 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_ |
| OLD | NEW |