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

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

Issue 182523002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed rch's comments in Patch set 1 of CL 181463007 Created 6 years, 10 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_in_memory_cache.cc ('k') | net/tools/quic/quic_server_session.h » ('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 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_TOOLS_QUIC_QUIC_SERVER_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_H_
9 #define NET_TOOLS_QUIC_QUIC_SERVER_H_ 9 #define NET_TOOLS_QUIC_QUIC_SERVER_H_
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 static bool ReadAndDispatchSinglePacket(int fd, int port, 61 static bool ReadAndDispatchSinglePacket(int fd, int port,
62 QuicDispatcher* dispatcher, 62 QuicDispatcher* dispatcher,
63 uint32* packets_dropped); 63 uint32* packets_dropped);
64 64
65 virtual void OnShutdown(EpollServer* eps, int fd) OVERRIDE {} 65 virtual void OnShutdown(EpollServer* eps, int fd) OVERRIDE {}
66 66
67 void SetStrikeRegisterNoStartupPeriod() { 67 void SetStrikeRegisterNoStartupPeriod() {
68 crypto_config_.set_strike_register_no_startup_period(); 68 crypto_config_.set_strike_register_no_startup_period();
69 } 69 }
70 70
71 // SetProofSource sets the ProofSource that will be used to verify the
72 // server's certificate, and takes ownership of |source|.
73 void SetProofSource(ProofSource* source) {
74 crypto_config_.SetProofSource(source);
75 }
76
71 bool overflow_supported() { return overflow_supported_; } 77 bool overflow_supported() { return overflow_supported_; }
72 78
73 uint32 packets_dropped() { return packets_dropped_; } 79 uint32 packets_dropped() { return packets_dropped_; }
74 80
75 int port() { return port_; } 81 int port() { return port_; }
76 82
77 private: 83 private:
78 friend class net::tools::test::QuicServerPeer; 84 friend class net::tools::test::QuicServerPeer;
79 85
80 // Initialize the internal state of the server. 86 // Initialize the internal state of the server.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // skipped as necessary). 121 // skipped as necessary).
116 QuicVersionVector supported_versions_; 122 QuicVersionVector supported_versions_;
117 123
118 DISALLOW_COPY_AND_ASSIGN(QuicServer); 124 DISALLOW_COPY_AND_ASSIGN(QuicServer);
119 }; 125 };
120 126
121 } // namespace tools 127 } // namespace tools
122 } // namespace net 128 } // namespace net
123 129
124 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_ 130 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_in_memory_cache.cc ('k') | net/tools/quic/quic_server_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698