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

Side by Side Diff: components/dom_distiller/content/distiller_page_web_contents.h

Issue 254483003: Start requiring DistillerPage for calls to DomDistillerService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Indent fixes (full git cl format) Created 6 years, 8 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 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
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
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_
OLDNEW
« no previous file with comments | « components/dom_distiller.gypi ('k') | components/dom_distiller/content/distiller_page_web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698