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

Unified Diff: content/common/resource_messages.h

Issue 138513002: Plumb network stack information about existence of cached copy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated rest of Matt's comments. 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
Index: content/common/resource_messages.h
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h
index 8b346dd2950128f70e786057ff39403935e9516f..0f194dccf1a743cc28f0118a8ba6350c86031250 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -213,6 +213,24 @@ IPC_STRUCT_BEGIN(ResourceHostMsg_Request)
IPC_STRUCT_MEMBER(bool, allow_download)
IPC_STRUCT_END()
+// Parameters for a ResourceMsg_RequestComplete
+IPC_STRUCT_BEGIN(ResourceMsg_RequestCompleteData)
+ // The error code.
+ IPC_STRUCT_MEMBER(int, error_code)
+
+ // Was ignored by the request handler.
+ IPC_STRUCT_MEMBER(bool, was_ignored_by_handler)
+
+ // A copy of the data requested exists in the cache
+ IPC_STRUCT_MEMBER(bool, exists_in_cache)
+
+ // Serialized security info; see content/common/ssl_status_serialization.h.
+ IPC_STRUCT_MEMBER(std::string, security_info)
+
+ // Time the request completed.
+ IPC_STRUCT_MEMBER(base::TimeTicks, completion_time)
+IPC_STRUCT_END()
+
// Resource messages sent from the browser to the renderer.
// Sent when the headers are available for a resource request.
@@ -274,12 +292,9 @@ IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded,
int /* encoded_data_length */)
// Sent when the request has been completed.
-IPC_MESSAGE_CONTROL5(ResourceMsg_RequestComplete,
+IPC_MESSAGE_CONTROL2(ResourceMsg_RequestComplete,
int /* request_id */,
- int /* error_code */,
- bool /* was_ignored_by_handler */,
- std::string /* security info */,
- base::TimeTicks /* completion_time */)
+ ResourceMsg_RequestCompleteData)
// Resource messages sent from the renderer to the browser.

Powered by Google App Engine
This is Rietveld 408576698