| Index: net/quic/quic_stream_factory.cc
|
| diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
|
| index ed30ef576857f7d3140fecae9f3259c802ba2318..93abbfec83adace1773972ebfec458100da06608 100644
|
| --- a/net/quic/quic_stream_factory.cc
|
| +++ b/net/quic/quic_stream_factory.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/message_loop_proxy.h"
|
| #include "base/rand_util.h"
|
| #include "base/stl_util.h"
|
| +#include "base/values.h"
|
| #include "net/base/host_resolver.h"
|
| #include "net/base/net_errors.h"
|
| #include "net/base/single_request_host_resolver.h"
|
| @@ -325,6 +326,19 @@ void QuicStreamFactory::CancelRequest(QuicStreamRequest* request) {
|
| active_requests_.erase(request);
|
| }
|
|
|
| +base::Value* QuicStreamFactory::QuicStreamFactoryInfoToValue() const {
|
| + base::ListValue* list = new base::ListValue();
|
| +
|
| + for (SessionMap::const_iterator it = active_sessions_.begin();
|
| + it != active_sessions_.end(); ++it) {
|
| + const HostPortProxyPair& pair = it->first;
|
| + const QuicClientSession* session = it->second;
|
| +
|
| + list->Append(session->GetInfoAsValue(pair.first));
|
| + }
|
| + return list;
|
| +}
|
| +
|
| bool QuicStreamFactory::HasActiveSession(
|
| const HostPortProxyPair& host_port_proxy_pair) {
|
| return ContainsKey(active_sessions_, host_port_proxy_pair);
|
|
|