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

Side by Side Diff: net/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, 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
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_QUIC_QUIC_SERVER_SESSION_H_ 7 #ifndef NET_QUIC_QUIC_SERVER_SESSION_H_
8 #define NET_QUIC_QUIC_SERVER_SESSION_H_ 8 #define NET_QUIC_QUIC_SERVER_SESSION_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void OnWriteBlocked() OVERRIDE; 52 virtual void OnWriteBlocked() OVERRIDE;
53 53
54 virtual ~QuicServerSession(); 54 virtual ~QuicServerSession();
55 55
56 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); 56 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config);
57 57
58 const QuicCryptoServerStream* crypto_stream() const { 58 const QuicCryptoServerStream* crypto_stream() const {
59 return crypto_stream_.get(); 59 return crypto_stream_.get();
60 } 60 }
61 61
62 // Override base class to process FEC config received from client.
63 virtual void OnConfigNegotiated() OVERRIDE;
64
62 protected: 65 protected:
63 // QuicSession methods: 66 // QuicSession methods:
64 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE; 67 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE;
65 virtual QuicDataStream* CreateOutgoingDataStream() OVERRIDE; 68 virtual QuicDataStream* CreateOutgoingDataStream() OVERRIDE;
66 virtual QuicCryptoServerStream* GetCryptoStream() OVERRIDE; 69 virtual QuicCryptoServerStream* GetCryptoStream() OVERRIDE;
67 70
68 // If we should create an incoming stream, returns true. Otherwise 71 // If we should create an incoming stream, returns true. Otherwise
69 // does error handling, including communicating the error to the client and 72 // does error handling, including communicating the error to the client and
70 // possibly closing the connection, and returns false. 73 // possibly closing the connection, and returns false.
71 virtual bool ShouldCreateIncomingDataStream(QuicStreamId id); 74 virtual bool ShouldCreateIncomingDataStream(QuicStreamId id);
72 75
73 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream( 76 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream(
74 const QuicCryptoServerConfig& crypto_config); 77 const QuicCryptoServerConfig& crypto_config);
75 78
76 private: 79 private:
77 friend class test::QuicServerSessionPeer; 80 friend class test::QuicServerSessionPeer;
78 81
79 scoped_ptr<QuicCryptoServerStream> crypto_stream_; 82 scoped_ptr<QuicCryptoServerStream> crypto_stream_;
80 QuicServerSessionVisitor* visitor_; 83 QuicServerSessionVisitor* visitor_;
81 84
82 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); 85 DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
83 }; 86 };
84 87
85 } // namespace net 88 } // namespace net
86 89
87 #endif // NET_QUIC_QUIC_SERVER_SESSION_H_ 90 #endif // NET_QUIC_QUIC_SERVER_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698