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 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 } | 462 } |
463 | 463 |
464 size_t GetFrameMaximumSize() const { | 464 size_t GetFrameMaximumSize() const { |
465 return buffered_spdy_framer_->GetFrameMaximumSize(); | 465 return buffered_spdy_framer_->GetFrameMaximumSize(); |
466 } | 466 } |
467 | 467 |
468 size_t GetDataFrameMaximumPayload() const { | 468 size_t GetDataFrameMaximumPayload() const { |
469 return buffered_spdy_framer_->GetDataFrameMaximumPayload(); | 469 return buffered_spdy_framer_->GetDataFrameMaximumPayload(); |
470 } | 470 } |
471 | 471 |
| 472 // https://http2.github.io/http2-spec/#TLSUsage mandates minimum security |
| 473 // standards for TLS. |
| 474 bool HasAcceptableTransportSecurity() const; |
| 475 |
472 // Must be used only by |pool_|. | 476 // Must be used only by |pool_|. |
473 base::WeakPtr<SpdySession> GetWeakPtr(); | 477 base::WeakPtr<SpdySession> GetWeakPtr(); |
474 | 478 |
475 // HigherLayeredPool implementation: | 479 // HigherLayeredPool implementation: |
476 virtual bool CloseOneIdleConnection() OVERRIDE; | 480 virtual bool CloseOneIdleConnection() OVERRIDE; |
477 | 481 |
478 private: | 482 private: |
479 friend class base::RefCounted<SpdySession>; | 483 friend class base::RefCounted<SpdySession>; |
480 friend class SpdyStreamRequest; | 484 friend class SpdyStreamRequest; |
481 friend class SpdySessionTest; | 485 friend class SpdySessionTest; |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 // This SPDY proxy is allowed to push resources from origins that are | 1130 // This SPDY proxy is allowed to push resources from origins that are |
1127 // different from those of their associated streams. | 1131 // different from those of their associated streams. |
1128 HostPortPair trusted_spdy_proxy_; | 1132 HostPortPair trusted_spdy_proxy_; |
1129 | 1133 |
1130 TimeFunc time_func_; | 1134 TimeFunc time_func_; |
1131 }; | 1135 }; |
1132 | 1136 |
1133 } // namespace net | 1137 } // namespace net |
1134 | 1138 |
1135 #endif // NET_SPDY_SPDY_SESSION_H_ | 1139 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |