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

Side by Side Diff: chrome/browser/net/net_error_tab_helper.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_
6 #define CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ 6 #define CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool is_iframe_srcdoc) override; 57 bool is_iframe_srcdoc) override;
58 58
59 void DidCommitProvisionalLoadForFrame( 59 void DidCommitProvisionalLoadForFrame(
60 content::RenderFrameHost* render_frame_host, 60 content::RenderFrameHost* render_frame_host,
61 const GURL& url, 61 const GURL& url,
62 ui::PageTransition transition_type) override; 62 ui::PageTransition transition_type) override;
63 63
64 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host, 64 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host,
65 const GURL& validated_url, 65 const GURL& validated_url,
66 int error_code, 66 int error_code,
67 const base::string16& error_description) override; 67 const base::string16& error_description,
68 bool was_ignored_by_handler) override;
68 69
69 protected: 70 protected:
70 // |contents| is the WebContents of the tab this NetErrorTabHelper is 71 // |contents| is the WebContents of the tab this NetErrorTabHelper is
71 // attached to. 72 // attached to.
72 explicit NetErrorTabHelper(content::WebContents* contents); 73 explicit NetErrorTabHelper(content::WebContents* contents);
73 virtual void StartDnsProbe(); 74 virtual void StartDnsProbe();
74 virtual void SendInfo(); 75 virtual void SendInfo();
75 void OnDnsProbeFinished(chrome_common_net::DnsProbeStatus result); 76 void OnDnsProbeFinished(chrome_common_net::DnsProbeStatus result);
76 77
77 chrome_common_net::DnsProbeStatus dns_probe_status() const { 78 chrome_common_net::DnsProbeStatus dns_probe_status() const {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 BooleanPrefMember resolve_errors_with_web_service_; 111 BooleanPrefMember resolve_errors_with_web_service_;
111 112
112 base::WeakPtrFactory<NetErrorTabHelper> weak_factory_; 113 base::WeakPtrFactory<NetErrorTabHelper> weak_factory_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper); 115 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper);
115 }; 116 };
116 117
117 } // namespace chrome_browser_net 118 } // namespace chrome_browser_net
118 119
119 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ 120 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/web_navigation/web_navigation_api.cc ('k') | chrome/browser/net/net_error_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698