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

Unified Diff: net/http/http_network_transaction.h

Issue 2298823002: Resetting the HttpRequestInfo pointers in HttpNetworkTransaction and streams (Closed)
Patch Set: Initial patch Created 4 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
Index: net/http/http_network_transaction.h
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h
index 87dc819ec619c8aa9faf3bde2428840429f1b021..aed6cc1fa67b9e9537b504c5a211c4168ff646bb 100644
--- a/net/http/http_network_transaction.h
+++ b/net/http/http_network_transaction.h
@@ -301,6 +301,9 @@ class NET_EXPORT_PRIVATE HttpNetworkTransaction
void CopyConnectionAttemptsFromStreamRequest();
+ // Resets request_ to nullptr.
+ void ResetRequestInfo();
+
scoped_refptr<HttpAuthController>
auth_controllers_[HttpAuth::AUTH_NUM_TARGETS];
@@ -315,7 +318,12 @@ class NET_EXPORT_PRIVATE HttpNetworkTransaction
HttpNetworkSession* session_;
BoundNetLog net_log_;
+
+ // Reset to null during the Read state machine.
const HttpRequestInfo* request_;
+
+ // The requested URL.
+ GURL url_;
RequestPriority priority_;
HttpResponseInfo response_;

Powered by Google App Engine
This is Rietveld 408576698