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

Side by Side Diff: net/quic/quic_client_session.cc

Issue 190063008: Include the scheme in the key for QUIC the session map. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/net_internals/quic_view.html ('k') | net/quic/quic_stream_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_client_session.h" 5 #include "net/quic/quic_client_session.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/sparse_histogram.h"
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 const std::set<HostPortProxyPair>& aliases) const { 496 const std::set<HostPortProxyPair>& aliases) const {
497 base::DictionaryValue* dict = new base::DictionaryValue(); 497 base::DictionaryValue* dict = new base::DictionaryValue();
498 // TODO(rch): remove "host_port_pair" when Chrome 34 is stable. 498 // TODO(rch): remove "host_port_pair" when Chrome 34 is stable.
499 dict->SetString("host_port_pair", aliases.begin()->first.ToString()); 499 dict->SetString("host_port_pair", aliases.begin()->first.ToString());
500 dict->SetString("version", QuicVersionToString(connection()->version())); 500 dict->SetString("version", QuicVersionToString(connection()->version()));
501 dict->SetInteger("open_streams", GetNumOpenStreams()); 501 dict->SetInteger("open_streams", GetNumOpenStreams());
502 dict->SetInteger("total_streams", num_total_streams_); 502 dict->SetInteger("total_streams", num_total_streams_);
503 dict->SetString("peer_address", peer_address().ToString()); 503 dict->SetString("peer_address", peer_address().ToString());
504 dict->SetString("connection_id", base::Uint64ToString(connection_id())); 504 dict->SetString("connection_id", base::Uint64ToString(connection_id()));
505 dict->SetBoolean("connected", connection()->connected()); 505 dict->SetBoolean("connected", connection()->connected());
506 SSLInfo ssl_info;
507 dict->SetBoolean("secure",
508 crypto_stream_->GetSSLInfo(&ssl_info) && ssl_info.cert);
506 509
507 base::ListValue* alias_list = new base::ListValue(); 510 base::ListValue* alias_list = new base::ListValue();
508 for (std::set<HostPortProxyPair>::const_iterator it = aliases.begin(); 511 for (std::set<HostPortProxyPair>::const_iterator it = aliases.begin();
509 it != aliases.end(); it++) { 512 it != aliases.end(); it++) {
510 alias_list->Append(new base::StringValue(it->first.ToString())); 513 alias_list->Append(new base::StringValue(it->first.ToString()));
511 } 514 }
512 dict->Set("aliases", alias_list); 515 dict->Set("aliases", alias_list);
513 516
514 return dict; 517 return dict;
515 } 518 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 } 567 }
565 568
566 void QuicClientSession::NotifyFactoryOfSessionClosed() { 569 void QuicClientSession::NotifyFactoryOfSessionClosed() {
567 DCHECK_EQ(0u, GetNumOpenStreams()); 570 DCHECK_EQ(0u, GetNumOpenStreams());
568 // Will delete |this|. 571 // Will delete |this|.
569 if (stream_factory_) 572 if (stream_factory_)
570 stream_factory_->OnSessionClosed(this); 573 stream_factory_->OnSessionClosed(this);
571 } 574 }
572 575
573 } // namespace net 576 } // namespace net
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/quic_view.html ('k') | net/quic/quic_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698