OLD | NEW |
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 #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 <algorithm> | 9 #include <algorithm> |
10 #include <list> | 10 #include <list> |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // Returns the current |initial_recv_window_size_|. | 293 // Returns the current |initial_recv_window_size_|. |
294 int32 initial_recv_window_size() const { return initial_recv_window_size_; } | 294 int32 initial_recv_window_size() const { return initial_recv_window_size_; } |
295 | 295 |
296 // Sets |initial_recv_window_size_| used by unittests. | 296 // Sets |initial_recv_window_size_| used by unittests. |
297 void set_initial_recv_window_size(int32 window_size) { | 297 void set_initial_recv_window_size(int32 window_size) { |
298 initial_recv_window_size_ = window_size; | 298 initial_recv_window_size_ = window_size; |
299 } | 299 } |
300 | 300 |
301 const BoundNetLog& net_log() const { return net_log_; } | 301 const BoundNetLog& net_log() const { return net_log_; } |
302 | 302 |
303 int GetPeerAddress(AddressList* address) const; | 303 int GetPeerAddress(IPEndPoint* address) const; |
304 int GetLocalAddress(IPEndPoint* address) const; | 304 int GetLocalAddress(IPEndPoint* address) const; |
305 | 305 |
306 // Returns true if requests on this session require credentials. | 306 // Returns true if requests on this session require credentials. |
307 bool NeedsCredentials() const; | 307 bool NeedsCredentials() const; |
308 | 308 |
309 SpdyCredentialState* credential_state() { return &credential_state_; } | 309 SpdyCredentialState* credential_state() { return &credential_state_; } |
310 | 310 |
311 // Adds |alias| to set of aliases associated with this session. | 311 // Adds |alias| to set of aliases associated with this session. |
312 void AddPooledAlias(const HostPortProxyPair& alias); | 312 void AddPooledAlias(const HostPortProxyPair& alias); |
313 | 313 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 private: | 716 private: |
717 const int status_; | 717 const int status_; |
718 const std::string description_; | 718 const std::string description_; |
719 | 719 |
720 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); | 720 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); |
721 }; | 721 }; |
722 | 722 |
723 } // namespace net | 723 } // namespace net |
724 | 724 |
725 #endif // NET_SPDY_SPDY_SESSION_H_ | 725 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |