diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-23 18:57:38 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-23 18:57:38 +0000 |
commit | eed749f90554fcb7f561c935bcee60b8e1235de2 (patch) | |
tree | 7a4d304ebcb722ecad33ae952da8ca6475d42aa8 /net/quic/quic_client_session.h | |
parent | b7e14683a6986670c56106b743fa3bd6433a9362 (diff) | |
download | chromium_src-eed749f90554fcb7f561c935bcee60b8e1235de2.zip chromium_src-eed749f90554fcb7f561c935bcee60b8e1235de2.tar.gz chromium_src-eed749f90554fcb7f561c935bcee60b8e1235de2.tar.bz2 |
Implement connection pooling in QUIC.
Review URL: https://codereview.chromium.org/105873007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/quic_client_session.h')
-rw-r--r-- | net/quic/quic_client_session.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/quic/quic_client_session.h b/net/quic/quic_client_session.h index 07da96a..943c206 100644 --- a/net/quic/quic_client_session.h +++ b/net/quic/quic_client_session.h @@ -15,6 +15,7 @@ #include "base/containers/hash_tables.h" #include "base/memory/scoped_ptr.h" #include "net/base/completion_callback.h" +#include "net/proxy/proxy_server.h" #include "net/quic/quic_connection_logger.h" #include "net/quic/quic_crypto_client_stream.h" #include "net/quic/quic_reliable_client_stream.h" @@ -143,7 +144,7 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicSession { // that this session has been closed, which will delete the session. void CloseSessionOnError(int error); - base::Value* GetInfoAsValue(const HostPortPair& pair) const; + base::Value* GetInfoAsValue(const std::set<HostPortProxyPair>& aliases) const; const BoundNetLog& net_log() const { return net_log_; } @@ -154,6 +155,11 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicSession { // than the number of round-trips needed for the handshake. int GetNumSentClientHellos() const; + // Returns true if |hostname| may be pooled onto this session. If this + // is a secure QUIC session, then |hostname| must match the certificate + // presented during the handshake. + bool CanPool(const std::string& hostname) const; + protected: // QuicSession methods: virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE; |