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

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

Issue 1194383003: Add a flag showing whether the current request was ignored by a handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot failures (DidFailProvisionalLoad calls in unit tests) Created 5 years, 6 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 gfx::Size GetSizeForNewRenderView( 61 gfx::Size GetSizeForNewRenderView(
62 content::WebContents* web_contents) const override; 62 content::WebContents* web_contents) const override;
63 63
64 // content::WebContentsObserver implementation. 64 // content::WebContentsObserver implementation.
65 void DocumentLoadedInFrame( 65 void DocumentLoadedInFrame(
66 content::RenderFrameHost* render_frame_host) override; 66 content::RenderFrameHost* render_frame_host) override;
67 67
68 void DidFailLoad(content::RenderFrameHost* render_frame_host, 68 void DidFailLoad(content::RenderFrameHost* render_frame_host,
69 const GURL& validated_url, 69 const GURL& validated_url,
70 int error_code, 70 int error_code,
71 const base::string16& error_description) override; 71 const base::string16& error_description,
72 bool was_ignored_by_handler) override;
72 73
73 protected: 74 protected:
74 bool StringifyOutput() override; 75 bool StringifyOutput() override;
75 bool CreateNewContext() override; 76 bool CreateNewContext() override;
76 void DistillPageImpl(const GURL& url, const std::string& script) override; 77 void DistillPageImpl(const GURL& url, const std::string& script) override;
77 78
78 private: 79 private:
79 friend class TestDistillerPageWebContents; 80 friend class TestDistillerPageWebContents;
80 81
81 enum State { 82 enum State {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 114
114 content::BrowserContext* browser_context_; 115 content::BrowserContext* browser_context_;
115 gfx::Size render_view_size_; 116 gfx::Size render_view_size_;
116 base::WeakPtrFactory<DistillerPageWebContents> weak_factory_; 117 base::WeakPtrFactory<DistillerPageWebContents> weak_factory_;
117 DISALLOW_COPY_AND_ASSIGN(DistillerPageWebContents); 118 DISALLOW_COPY_AND_ASSIGN(DistillerPageWebContents);
118 }; 119 };
119 120
120 } // namespace dom_distiller 121 } // namespace dom_distiller
121 122
122 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_ 123 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLER_PAGE_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698