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

Unified Diff: net/http/http_network_transaction.h

Issue 6698009: Add request_id to HttpRequestInfo and pass it to the NetworkDelegate for events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delegate callbcak Created 9 years, 9 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 3cec010aedaeb13363c19fee158f22969fec9844..854ad6b91ba35be1415b243f926acfb7c7d47d34 100644
--- a/net/http/http_network_transaction.h
+++ b/net/http/http_network_transaction.h
@@ -94,6 +94,8 @@ class HttpNetworkTransaction : public HttpTransaction,
STATE_GENERATE_PROXY_AUTH_TOKEN_COMPLETE,
STATE_GENERATE_SERVER_AUTH_TOKEN,
STATE_GENERATE_SERVER_AUTH_TOKEN_COMPLETE,
+ STATE_BUILD_REQUEST,
+ STATE_BUILD_REQUEST_COMPLETE,
STATE_SEND_REQUEST,
STATE_SEND_REQUEST_COMPLETE,
STATE_READ_HEADERS,
@@ -125,7 +127,9 @@ class HttpNetworkTransaction : public HttpTransaction,
int DoGenerateProxyAuthTokenComplete(int result);
int DoGenerateServerAuthToken();
int DoGenerateServerAuthTokenComplete(int result);
- int DoSendRequest();
+ int DoBuildRequest();
+ int DoBuildRequestComplete(int result);
+ int DoSendRequest(int result);
int DoSendRequestComplete(int result);
int DoReadHeaders();
int DoReadHeadersComplete(int result);
@@ -217,7 +221,10 @@ class HttpNetworkTransaction : public HttpTransaction,
HttpAuth::Target pending_auth_target_;
CompletionCallbackImpl<HttpNetworkTransaction> io_callback_;
+ scoped_refptr<CancelableCompletionCallback<HttpNetworkTransaction> >
+ delegate_callback_;
CompletionCallback* user_callback_;
+ scoped_ptr<UploadDataStream> request_body_;
scoped_refptr<HttpNetworkSession> session_;

Powered by Google App Engine
This is Rietveld 408576698