| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef NET_SPDY_SPDY_SESSION_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_H_ | 
| 6 #define NET_SPDY_SPDY_SESSION_H_ | 6 #define NET_SPDY_SPDY_SESSION_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include <deque> | 9 #include <deque> | 
| 10 #include <list> | 10 #include <list> | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 49  public: | 49  public: | 
| 50   // Create a new SpdySession. | 50   // Create a new SpdySession. | 
| 51   // |host_port_proxy_pair| is the host/port that this session connects to, and | 51   // |host_port_proxy_pair| is the host/port that this session connects to, and | 
| 52   // the proxy configuration settings that it's using. | 52   // the proxy configuration settings that it's using. | 
| 53   // |spdy_session_pool| is the SpdySessionPool that owns us.  Its lifetime must | 53   // |spdy_session_pool| is the SpdySessionPool that owns us.  Its lifetime must | 
| 54   // strictly be greater than |this|. | 54   // strictly be greater than |this|. | 
| 55   // |session| is the HttpNetworkSession.  |net_log| is the NetLog that we log | 55   // |session| is the HttpNetworkSession.  |net_log| is the NetLog that we log | 
| 56   // network events to. | 56   // network events to. | 
| 57   SpdySession(const HostPortProxyPair& host_port_proxy_pair, | 57   SpdySession(const HostPortProxyPair& host_port_proxy_pair, | 
| 58               SpdySessionPool* spdy_session_pool, | 58               SpdySessionPool* spdy_session_pool, | 
| 59               SpdySettingsStorage* spdy_settings, | 59               HttpServerProperties* http_server_properties, | 
| 60               bool verify_domain_authentication, | 60               bool verify_domain_authentication, | 
| 61               NetLog* net_log); | 61               NetLog* net_log); | 
| 62 | 62 | 
| 63   const HostPortPair& host_port_pair() const { | 63   const HostPortPair& host_port_pair() const { | 
| 64     return host_port_proxy_pair_.first; | 64     return host_port_proxy_pair_.first; | 
| 65   } | 65   } | 
| 66   const HostPortProxyPair& host_port_proxy_pair() const { | 66   const HostPortProxyPair& host_port_proxy_pair() const { | 
| 67     return host_port_proxy_pair_; | 67     return host_port_proxy_pair_; | 
| 68   } | 68   } | 
| 69 | 69 | 
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 440   // callback.  This is necessary since, before we invoke said callback, it's | 440   // callback.  This is necessary since, before we invoke said callback, it's | 
| 441   // possible that the request is cancelled. | 441   // possible that the request is cancelled. | 
| 442   PendingCallbackMap pending_callback_map_; | 442   PendingCallbackMap pending_callback_map_; | 
| 443 | 443 | 
| 444   // The domain this session is connected to. | 444   // The domain this session is connected to. | 
| 445   const HostPortProxyPair host_port_proxy_pair_; | 445   const HostPortProxyPair host_port_proxy_pair_; | 
| 446 | 446 | 
| 447   // |spdy_session_pool_| owns us, therefore its lifetime must exceed ours.  We | 447   // |spdy_session_pool_| owns us, therefore its lifetime must exceed ours.  We | 
| 448   // set this to NULL after we are removed from the pool. | 448   // set this to NULL after we are removed from the pool. | 
| 449   SpdySessionPool* spdy_session_pool_; | 449   SpdySessionPool* spdy_session_pool_; | 
| 450   SpdySettingsStorage* const spdy_settings_; | 450   HttpServerProperties* const http_server_properties_; | 
| 451 | 451 | 
| 452   // The socket handle for this session. | 452   // The socket handle for this session. | 
| 453   scoped_ptr<ClientSocketHandle> connection_; | 453   scoped_ptr<ClientSocketHandle> connection_; | 
| 454 | 454 | 
| 455   // The read buffer used to read data from the socket. | 455   // The read buffer used to read data from the socket. | 
| 456   scoped_refptr<IOBuffer> read_buffer_; | 456   scoped_refptr<IOBuffer> read_buffer_; | 
| 457   bool read_pending_; | 457   bool read_pending_; | 
| 458 | 458 | 
| 459   int stream_hi_water_mark_;  // The next stream id to use. | 459   int stream_hi_water_mark_;  // The next stream id to use. | 
| 460 | 460 | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 612   const spdy::SpdyControlFlags flags_; | 612   const spdy::SpdyControlFlags flags_; | 
| 613   const spdy::SpdyStreamId id_; | 613   const spdy::SpdyStreamId id_; | 
| 614   const spdy::SpdyStreamId associated_stream_; | 614   const spdy::SpdyStreamId associated_stream_; | 
| 615 | 615 | 
| 616   DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); | 616   DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); | 
| 617 }; | 617 }; | 
| 618 | 618 | 
| 619 }  // namespace net | 619 }  // namespace net | 
| 620 | 620 | 
| 621 #endif  // NET_SPDY_SPDY_SESSION_H_ | 621 #endif  // NET_SPDY_SPDY_SESSION_H_ | 
| OLD | NEW | 
|---|