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

Unified Diff: content/common/frame_messages.h

Issue 118553006: Move DidFailProvisionalLoad handling from RenderView(Host) to RenderFrame(Host). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT. Created 6 years, 11 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 | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index ea243761af285ea719fcaa29c257e0e70556e143..776775d20575a0fc79c4778d20a40a8d6a7b577d 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -16,6 +16,25 @@
#define IPC_MESSAGE_START FrameMsgStart
+IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params)
+ // The frame ID for the failure report.
+ IPC_STRUCT_MEMBER(int64, frame_id)
+ // The WebFrame's uniqueName().
+ IPC_STRUCT_MEMBER(base::string16, frame_unique_name)
+ // True if this is the top-most frame.
+ IPC_STRUCT_MEMBER(bool, is_main_frame)
+ // Error code as reported in the DidFailProvisionalLoad callback.
+ IPC_STRUCT_MEMBER(int, error_code)
+ // An error message generated from the error_code. This can be an empty
+ // string if we were unable to find a meaningful description.
+ IPC_STRUCT_MEMBER(base::string16, error_description)
+ // The URL that the error is reported for.
+ IPC_STRUCT_MEMBER(GURL, url)
+ // True if the failure is the result of navigating to a POST again
+ // and we're going to show the POST interstitial.
+ IPC_STRUCT_MEMBER(bool, showing_repost_interstitial)
+IPC_STRUCT_END()
+
// -----------------------------------------------------------------------------
// Messages sent from the browser to the renderer.
@@ -70,6 +89,10 @@ IPC_MESSAGE_ROUTED4(FrameHostMsg_DidStartProvisionalLoadForFrame,
bool /* true if it is the main frame */,
GURL /* url */)
+// Sent when the renderer fails a provisional load with an error.
+IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError,
+ FrameHostMsg_DidFailProvisionalLoadWithError_Params)
+
// Sent to the browser when the renderer detects it is blocked on a pepper
// plugin message for too long. This is also sent when it becomes unhung
// (according to the value of is_hung). The browser can give the user the
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698