| 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
|
|
|