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

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

Issue 100173005: Break out the basic reliable QUIC stream functionality from the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « net/tools/quic/quic_client_session_test.cc ('k') | net/tools/quic/quic_server_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
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() { return crypto_stream_.get(); } 55 const QuicCryptoServerStream* crypto_stream() { return crypto_stream_.get(); }
56 56
57 protected: 57 protected:
58 // QuicSession methods: 58 // QuicSession methods:
59 virtual ReliableQuicStream* CreateIncomingReliableStream( 59 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE;
60 QuicStreamId id) OVERRIDE; 60 virtual QuicDataStream* CreateOutgoingDataStream() OVERRIDE;
61 virtual ReliableQuicStream* CreateOutgoingReliableStream() OVERRIDE;
62 virtual QuicCryptoServerStream* GetCryptoStream() OVERRIDE; 61 virtual QuicCryptoServerStream* GetCryptoStream() OVERRIDE;
63 62
64 // If we should create an incoming stream, returns true. Otherwise 63 // If we should create an incoming stream, returns true. Otherwise
65 // does error handling, including communicating the error to the client and 64 // does error handling, including communicating the error to the client and
66 // possibly closing the connection, and returns false. 65 // possibly closing the connection, and returns false.
67 virtual bool ShouldCreateIncomingReliableStream(QuicStreamId id); 66 virtual bool ShouldCreateIncomingDataStream(QuicStreamId id);
68 67
69 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream( 68 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream(
70 const QuicCryptoServerConfig& crypto_config); 69 const QuicCryptoServerConfig& crypto_config);
71 70
72 private: 71 private:
73 friend class test::QuicServerSessionPeer; 72 friend class test::QuicServerSessionPeer;
74 73
75 scoped_ptr<QuicCryptoServerStream> crypto_stream_; 74 scoped_ptr<QuicCryptoServerStream> crypto_stream_;
76 QuicSessionOwner* owner_; 75 QuicSessionOwner* owner_;
77 76
78 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); 77 DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
79 }; 78 };
80 79
81 } // namespace tools 80 } // namespace tools
82 } // namespace net 81 } // namespace net
83 82
84 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 83 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_session_test.cc ('k') | net/tools/quic/quic_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698