| 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 } | 504 } |
| 505 | 505 |
| 506 size_t GetFrameMaximumSize() const { | 506 size_t GetFrameMaximumSize() const { |
| 507 return buffered_spdy_framer_->GetFrameMaximumSize(); | 507 return buffered_spdy_framer_->GetFrameMaximumSize(); |
| 508 } | 508 } |
| 509 | 509 |
| 510 size_t GetDataFrameMaximumPayload() const { | 510 size_t GetDataFrameMaximumPayload() const { |
| 511 return buffered_spdy_framer_->GetDataFrameMaximumPayload(); | 511 return buffered_spdy_framer_->GetDataFrameMaximumPayload(); |
| 512 } | 512 } |
| 513 | 513 |
| 514 static int32 GetInitialWindowSize(NextProto protocol) { |
| 515 return protocol < kProtoSPDY4MinimumVersion ? 65536 : 65535; |
| 516 } |
| 517 |
| 514 // https://http2.github.io/http2-spec/#TLSUsage mandates minimum security | 518 // https://http2.github.io/http2-spec/#TLSUsage mandates minimum security |
| 515 // standards for TLS. | 519 // standards for TLS. |
| 516 bool HasAcceptableTransportSecurity() const; | 520 bool HasAcceptableTransportSecurity() const; |
| 517 | 521 |
| 518 // Must be used only by |pool_|. | 522 // Must be used only by |pool_|. |
| 519 base::WeakPtr<SpdySession> GetWeakPtr(); | 523 base::WeakPtr<SpdySession> GetWeakPtr(); |
| 520 | 524 |
| 521 // HigherLayeredPool implementation: | 525 // HigherLayeredPool implementation: |
| 522 bool CloseOneIdleConnection() override; | 526 bool CloseOneIdleConnection() override; |
| 523 | 527 |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 // Used for posting asynchronous IO tasks. We use this even though | 1175 // Used for posting asynchronous IO tasks. We use this even though |
| 1172 // SpdySession is refcounted because we don't need to keep the SpdySession | 1176 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 1173 // alive if the last reference is within a RunnableMethod. Just revoke the | 1177 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 1174 // method. | 1178 // method. |
| 1175 base::WeakPtrFactory<SpdySession> weak_factory_; | 1179 base::WeakPtrFactory<SpdySession> weak_factory_; |
| 1176 }; | 1180 }; |
| 1177 | 1181 |
| 1178 } // namespace net | 1182 } // namespace net |
| 1179 | 1183 |
| 1180 #endif // NET_SPDY_SPDY_SESSION_H_ | 1184 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |