Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Side by Side Diff: net/tools/quic/quic_server_session.h

Issue 20227003: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Land Recent QUIC changes Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
41 QuicConnection *connection, 41 QuicConnection *connection,
42 QuicSessionOwner* owner); 42 QuicSessionOwner* owner);
43 43
44 // Override the base class to notify the owner of the connection close. 44 // Override the base class to notify the owner of the connection close.
45 virtual void ConnectionClose(QuicErrorCode error, bool from_peer) OVERRIDE; 45 virtual void ConnectionClose(QuicErrorCode error, bool from_peer) OVERRIDE;
46 46
47 virtual ~QuicServerSession(); 47 virtual ~QuicServerSession();
48 48
49 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); 49 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config);
50 50
51 const QuicCryptoServerStream* crypto_stream() { return crypto_stream_.get(); }
52
51 protected: 53 protected:
52 // QuicSession methods: 54 // QuicSession methods:
53 virtual ReliableQuicStream* CreateIncomingReliableStream( 55 virtual ReliableQuicStream* CreateIncomingReliableStream(
54 QuicStreamId id) OVERRIDE; 56 QuicStreamId id) OVERRIDE;
55 virtual ReliableQuicStream* CreateOutgoingReliableStream() OVERRIDE; 57 virtual ReliableQuicStream* CreateOutgoingReliableStream() OVERRIDE;
56 virtual QuicCryptoServerStream* GetCryptoStream() OVERRIDE; 58 virtual QuicCryptoServerStream* GetCryptoStream() OVERRIDE;
57 59
58 // If we should create an incoming stream, returns true. Otherwise 60 // If we should create an incoming stream, returns true. Otherwise
59 // does error handling, including communicating the error to the client and 61 // does error handling, including communicating the error to the client and
60 // possibly closing the connection, and returns false. 62 // possibly closing the connection, and returns false.
61 virtual bool ShouldCreateIncomingReliableStream(QuicStreamId id); 63 virtual bool ShouldCreateIncomingReliableStream(QuicStreamId id);
62 64
63 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream( 65 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream(
64 const QuicCryptoServerConfig& crypto_config); 66 const QuicCryptoServerConfig& crypto_config);
65 67
66 private: 68 private:
67 scoped_ptr<QuicCryptoServerStream> crypto_stream_; 69 scoped_ptr<QuicCryptoServerStream> crypto_stream_;
68 QuicSessionOwner* owner_; 70 QuicSessionOwner* owner_;
69 71
70 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); 72 DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
71 }; 73 };
72 74
73 } // namespace tools 75 } // namespace tools
74 } // namespace net 76 } // namespace net
75 77
76 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 78 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_epoll_connection_helper_test.cc ('k') | net/tools/quic/quic_time_wait_list_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698