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

Unified Diff: net/http/http_network_transaction.cc

Issue 2325643004: Remove HttpNetworkTransaction::DescribeState. (Closed)
Patch Set: Removed describe state function. Created 4 years, 3 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 | « net/http/http_network_transaction.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index b5db3d24cf5990eeefdef97c443915a790d01ea9..b25b3e6af88954aff9afb7f0e286b9ed72cac825 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1631,40 +1631,6 @@ bool HttpNetworkTransaction::ForWebSocketHandshake() const {
request_->url.SchemeIsWSOrWSS();
}
-#define STATE_CASE(s) \
- case s: \
- description = base::StringPrintf("%s (0x%08X)", #s, s); \
- break
-
-std::string HttpNetworkTransaction::DescribeState(State state) {
- std::string description;
- switch (state) {
- STATE_CASE(STATE_NOTIFY_BEFORE_CREATE_STREAM);
- STATE_CASE(STATE_CREATE_STREAM);
- STATE_CASE(STATE_CREATE_STREAM_COMPLETE);
- STATE_CASE(STATE_INIT_REQUEST_BODY);
- STATE_CASE(STATE_INIT_REQUEST_BODY_COMPLETE);
- STATE_CASE(STATE_BUILD_REQUEST);
- STATE_CASE(STATE_BUILD_REQUEST_COMPLETE);
- STATE_CASE(STATE_SEND_REQUEST);
- STATE_CASE(STATE_SEND_REQUEST_COMPLETE);
- STATE_CASE(STATE_READ_HEADERS);
- STATE_CASE(STATE_READ_HEADERS_COMPLETE);
- STATE_CASE(STATE_READ_BODY);
- STATE_CASE(STATE_READ_BODY_COMPLETE);
- STATE_CASE(STATE_DRAIN_BODY_FOR_AUTH_RESTART);
- STATE_CASE(STATE_DRAIN_BODY_FOR_AUTH_RESTART_COMPLETE);
- STATE_CASE(STATE_NONE);
- default:
- description = base::StringPrintf("Unknown state 0x%08X (%u)", state,
- state);
- break;
- }
- return description;
-}
-
-#undef STATE_CASE
-
void HttpNetworkTransaction::CopyConnectionAttemptsFromStreamRequest() {
DCHECK(stream_request_);
« no previous file with comments | « net/http/http_network_transaction.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698