| Index: net/quic/quic_client_session.cc
|
| diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
|
| index 19684af6b2f9e7e0b661b9cf5b2507036e09bcb1..3beba726d3defbdc793a60c6fc44a801de1b73c2 100644
|
| --- a/net/quic/quic_client_session.cc
|
| +++ b/net/quic/quic_client_session.cc
|
| @@ -6,6 +6,8 @@
|
|
|
| #include "base/message_loop.h"
|
| #include "base/stl_util.h"
|
| +#include "base/string_number_conversions.h"
|
| +#include "base/values.h"
|
| #include "net/base/io_buffer.h"
|
| #include "net/base/net_errors.h"
|
| #include "net/quic/quic_connection_helper.h"
|
| @@ -113,6 +115,15 @@ void QuicClientSession::CloseSessionOnError(int error) {
|
| stream_factory_->OnSessionClose(this);
|
| }
|
|
|
| +Value* QuicClientSession::GetInfoAsValue(const HostPortPair& pair) const {
|
| + DictionaryValue* dict = new DictionaryValue();
|
| + dict->SetString("host_port_pair", pair.ToString());
|
| + dict->SetInteger("open_streams", GetNumOpenStreams());
|
| + dict->SetString("peer_address", peer_address().ToString());
|
| + dict->SetString("guid", base::Uint64ToString(guid()));
|
| + return dict;
|
| +}
|
| +
|
| void QuicClientSession::OnReadComplete(int result) {
|
| read_pending_ = false;
|
| // TODO(rch): Inform the connection about the result.
|
|
|