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

Unified Diff: chrome/renderer/frame_sniffer.cc

Issue 8341037: Added logic that will retry to reload+reconnect the mobile payment portal page 5 times before it ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/frame_sniffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/frame_sniffer.cc
===================================================================
--- chrome/renderer/frame_sniffer.cc (revision 107314)
+++ chrome/renderer/frame_sniffer.cc (working copy)
@@ -18,12 +18,19 @@
}
void FrameSniffer::DidFailProvisionalLoad(WebKit::WebFrame* frame,
- const WebKit::WebURLError& error) {
+ const WebKit::WebURLError& error) {
if (!ShouldSniffFrame(frame))
return;
Send(new ChromeViewHostMsg_FrameLoadingError(routing_id(), -error.reason));
}
+void FrameSniffer::DidCommitProvisionalLoad(WebKit::WebFrame* frame,
+ bool is_new_navigation) {
+ if (!ShouldSniffFrame(frame))
+ return;
+ Send(new ChromeViewHostMsg_FrameLoadingCompleted(routing_id()));
+}
+
bool FrameSniffer::ShouldSniffFrame(WebKit::WebFrame* frame) {
return frame->name() == frame_name_;
}
« no previous file with comments | « chrome/renderer/frame_sniffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698