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

Unified Diff: content/common/resource_messages.h

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 years, 4 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/child/web_url_loader_impl_unittest.cc ('k') | content/public/child/request_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_messages.h
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h
index d4a7d976ca5a5b45d5ebbdec571e85db015a11b9..dc6147a96d2eebea75f42f863e3c4d055f708f27 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -16,6 +16,7 @@
#include "ipc/ipc_message_macros.h"
#include "net/base/request_priority.h"
#include "net/http/http_response_info.h"
+#include "net/url_request/redirect_info.h"
#ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_
#define CONTENT_COMMON_RESOURCE_MESSAGES_H_
@@ -121,6 +122,14 @@ IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo)
IPC_STRUCT_TRAITS_MEMBER(original_url_via_service_worker)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(net::RedirectInfo)
+ IPC_STRUCT_TRAITS_MEMBER(status_code)
+ IPC_STRUCT_TRAITS_MEMBER(new_method)
+ IPC_STRUCT_TRAITS_MEMBER(new_url)
+ IPC_STRUCT_TRAITS_MEMBER(new_first_party_for_cookies)
+ IPC_STRUCT_TRAITS_MEMBER(new_referrer)
+IPC_STRUCT_TRAITS_END()
+
// Parameters for a resource request.
IPC_STRUCT_BEGIN(ResourceHostMsg_Request)
// The request method: GET, POST, etc.
@@ -260,10 +269,9 @@ IPC_MESSAGE_CONTROL3(ResourceMsg_UploadProgress,
// Sent when the request has been redirected. The receiver is expected to
// respond with either a FollowRedirect message (if the redirect is to be
// followed) or a CancelRequest message (if it should not be followed).
-IPC_MESSAGE_CONTROL4(ResourceMsg_ReceivedRedirect,
+IPC_MESSAGE_CONTROL3(ResourceMsg_ReceivedRedirect,
int /* request_id */,
- GURL /* new_url */,
- GURL /* new_first_party_for_cookies */,
+ net::RedirectInfo /* redirect_info */,
content::ResourceResponseHead)
// Sent to set the shared memory buffer to be used to transmit response data to
« no previous file with comments | « content/child/web_url_loader_impl_unittest.cc ('k') | content/public/child/request_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698