| 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 // A server specific QuicSession subclass. | 5 // A server specific QuicSession subclass. |
| 6 | 6 |
| 7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ | 7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
| 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ | 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 class QuicServerSession : public QuicSession { | 42 class QuicServerSession : public QuicSession { |
| 43 public: | 43 public: |
| 44 QuicServerSession(const QuicConfig& config, | 44 QuicServerSession(const QuicConfig& config, |
| 45 QuicConnection *connection, | 45 QuicConnection *connection, |
| 46 QuicSessionOwner* owner); | 46 QuicSessionOwner* owner); |
| 47 | 47 |
| 48 // Override the base class to notify the owner of the connection close. | 48 // Override the base class to notify the owner of the connection close. |
| 49 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; | 49 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; |
| 50 | 50 |
| 51 virtual ~QuicServerSession(); | 51 virtual ~QuicServerSession() OVERRIDE; |
| 52 | 52 |
| 53 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); | 53 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); |
| 54 | 54 |
| 55 const QuicCryptoServerStream* crypto_stream() const { | 55 const QuicCryptoServerStream* crypto_stream() const { |
| 56 return crypto_stream_.get(); | 56 return crypto_stream_.get(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 protected: | 59 protected: |
| 60 // QuicSession methods: | 60 // QuicSession methods: |
| 61 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE; | 61 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 76 scoped_ptr<QuicCryptoServerStream> crypto_stream_; | 76 scoped_ptr<QuicCryptoServerStream> crypto_stream_; |
| 77 QuicSessionOwner* owner_; | 77 QuicSessionOwner* owner_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); | 79 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace tools | 82 } // namespace tools |
| 83 } // namespace net | 83 } // namespace net |
| 84 | 84 |
| 85 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ | 85 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
| OLD | NEW |