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

Unified Diff: net/http/http_stream_factory_impl_job.cc

Issue 2619403002: TEMP DO NOT REVIEW
Patch Set: Created 3 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
« no previous file with comments | « net/http/http_stream_factory_impl_job.h ('k') | net/http/http_stream_factory_impl_job_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory_impl_job.cc
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc
index 731d4d2949516408a6cff7faeb8ee0a2f2a808d7..b7bf5513dd07ab8b018ff75f9b9efcaefd1ff588 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -18,6 +18,7 @@
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
+#include "base/strings/stringprintf.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
#include "base/values.h"
@@ -1511,4 +1512,25 @@ void HttpStreamFactoryImpl::Job::
delegate_->AddConnectionAttemptsToRequest(this, socket_attempts);
}
+std::string
+HttpStreamFactoryImpl::Job::state() const {
+
+ switch(next_state_) {
+ case(STATE_START):
+ return "start";
+ case(STATE_RESOLVE_PROXY):
+ return "resolve proxy";
+ case(STATE_RESOLVE_PROXY_COMPLETE):
+ return "proxy complete";
+
+ case(STATE_WAIT):
+ return "wait";
+ case(STATE_WAIT_COMPLETE):
+ return "wait complete";
+
+ default:
+ return base::StringPrintf("%d", next_state_);
+ }
+
+}
} // namespace net
« no previous file with comments | « net/http/http_stream_factory_impl_job.h ('k') | net/http/http_stream_factory_impl_job_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698