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

Side by Side Diff: net/quic/quic_server.h

Issue 965943002: Fixing a bug in the QUIC prober where if we received a GOAWAY before (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Remove_dead_method_QuicUnackedPacketMap_RestoreInFlight_86690324
Patch Set: Created 5 years, 9 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
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 toy server, which listens on a specified address for QUIC traffic and 5 // A toy server, which listens on a specified address for QUIC traffic and
6 // handles incoming responses. 6 // handles incoming responses.
7 7
8 #ifndef NET_QUIC_QUIC_SERVER_H_ 8 #ifndef NET_QUIC_QUIC_SERVER_H_
9 #define NET_QUIC_QUIC_SERVER_H_ 9 #define NET_QUIC_QUIC_SERVER_H_
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void SetStrikeRegisterNoStartupPeriod() { 52 void SetStrikeRegisterNoStartupPeriod() {
53 crypto_config_.set_strike_register_no_startup_period(); 53 crypto_config_.set_strike_register_no_startup_period();
54 } 54 }
55 55
56 // SetProofSource sets the ProofSource that will be used to verify the 56 // SetProofSource sets the ProofSource that will be used to verify the
57 // server's certificate, and takes ownership of |source|. 57 // server's certificate, and takes ownership of |source|.
58 void SetProofSource(ProofSource* source) { 58 void SetProofSource(ProofSource* source) {
59 crypto_config_.SetProofSource(source); 59 crypto_config_.SetProofSource(source);
60 } 60 }
61 61
62 QuicDispatcher* dispatcher() { return dispatcher_.get(); }
63
62 private: 64 private:
63 friend class net::test::QuicServerPeer; 65 friend class net::test::QuicServerPeer;
64 66
65 // Initialize the internal state of the server. 67 // Initialize the internal state of the server.
66 void Initialize(); 68 void Initialize();
67 69
68 // Accepts data from the framer and demuxes clients to sessions. 70 // Accepts data from the framer and demuxes clients to sessions.
69 scoped_ptr<QuicDispatcher> dispatcher_; 71 scoped_ptr<QuicDispatcher> dispatcher_;
70 72
71 // Used by the helper_ to time alarms. 73 // Used by the helper_ to time alarms.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 NetLog net_log_; 112 NetLog net_log_;
111 113
112 base::WeakPtrFactory<QuicServer> weak_factory_; 114 base::WeakPtrFactory<QuicServer> weak_factory_;
113 115
114 DISALLOW_COPY_AND_ASSIGN(QuicServer); 116 DISALLOW_COPY_AND_ASSIGN(QuicServer);
115 }; 117 };
116 118
117 } // namespace net 119 } // namespace net
118 120
119 #endif // NET_QUIC_QUIC_SERVER_H_ 121 #endif // NET_QUIC_QUIC_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698