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

Unified Diff: content/public/browser/resource_request_details.h

Issue 226183015: Added HTTP response code field to ResourceRequestDetails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/public/browser/resource_request_details.h
diff --git a/content/public/browser/resource_request_details.h b/content/public/browser/resource_request_details.h
index 856d9a3cc4944ed54fa8e8385d821268756ab5db..2a0f7a404f5559a43c506b4b55d7f17e9a3b976f 100644
--- a/content/public/browser/resource_request_details.h
+++ b/content/public/browser/resource_request_details.h
@@ -40,6 +40,12 @@ struct ResourceRequestDetails {
ResourceType::Type resource_type;
net::HostPortPair socket_address;
int render_frame_id;
+ // HTTP response code.
+ // Defaults to 200 if there is no response code among headers.
+ // -1 if there are no response headers yet for some reason.
Charlie Reis 2014/04/08 23:22:29 nit: Remove "for some reason."
+ // Can be also 0 if the response code text seems to exist but could not be
Charlie Reis 2014/04/08 23:22:29 Most of this comment seems to be taken from http_r
+ // parsed.
+ int http_response_code;
};
// Details about a redirection of a resource request.
« no previous file with comments | « no previous file | content/public/browser/resource_request_details.cc » ('j') | content/public/browser/resource_request_details.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698