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

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

Issue 351133002: Adds an internal server and chromium's flag for disabling/enabling FEC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void OnWriteBlocked() OVERRIDE; 54 virtual void OnWriteBlocked() OVERRIDE;
55 55
56 virtual ~QuicServerSession(); 56 virtual ~QuicServerSession();
57 57
58 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); 58 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config);
59 59
60 const QuicCryptoServerStream* crypto_stream() const { 60 const QuicCryptoServerStream* crypto_stream() const {
61 return crypto_stream_.get(); 61 return crypto_stream_.get();
62 } 62 }
63 63
64 // Override base class to process FEC config received from client.
65 virtual void OnConfigNegotiated() OVERRIDE;
66
64 protected: 67 protected:
65 // QuicSession methods: 68 // QuicSession methods:
66 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE; 69 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE;
67 virtual QuicDataStream* CreateOutgoingDataStream() OVERRIDE; 70 virtual QuicDataStream* CreateOutgoingDataStream() OVERRIDE;
68 virtual QuicCryptoServerStream* GetCryptoStream() OVERRIDE; 71 virtual QuicCryptoServerStream* GetCryptoStream() OVERRIDE;
69 72
70 // If we should create an incoming stream, returns true. Otherwise 73 // If we should create an incoming stream, returns true. Otherwise
71 // does error handling, including communicating the error to the client and 74 // does error handling, including communicating the error to the client and
72 // possibly closing the connection, and returns false. 75 // possibly closing the connection, and returns false.
73 virtual bool ShouldCreateIncomingDataStream(QuicStreamId id); 76 virtual bool ShouldCreateIncomingDataStream(QuicStreamId id);
74 77
75 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream( 78 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream(
76 const QuicCryptoServerConfig& crypto_config); 79 const QuicCryptoServerConfig& crypto_config);
77 80
78 private: 81 private:
79 friend class test::QuicServerSessionPeer; 82 friend class test::QuicServerSessionPeer;
80 83
81 scoped_ptr<QuicCryptoServerStream> crypto_stream_; 84 scoped_ptr<QuicCryptoServerStream> crypto_stream_;
82 QuicServerSessionVisitor* visitor_; 85 QuicServerSessionVisitor* visitor_;
83 86
84 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); 87 DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
85 }; 88 };
86 89
87 } // namespace tools 90 } // namespace tools
88 } // namespace net 91 } // namespace net
89 92
90 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 93 #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