OLD | NEW |
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 client, which connects to a specified port and sends QUIC | 5 // A toy client, which connects to a specified port and sends QUIC |
6 // request to that endpoint. | 6 // request to that endpoint. |
7 | 7 |
8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 server_id_ = server_id; | 145 server_id_ = server_id; |
146 } | 146 } |
147 | 147 |
148 // SetProofVerifier sets the ProofVerifier that will be used to verify the | 148 // SetProofVerifier sets the ProofVerifier that will be used to verify the |
149 // server's certificate and takes ownership of |verifier|. | 149 // server's certificate and takes ownership of |verifier|. |
150 void SetProofVerifier(ProofVerifier* verifier) { | 150 void SetProofVerifier(ProofVerifier* verifier) { |
151 // TODO(rtenneti): We should set ProofVerifier in QuicClientSession. | 151 // TODO(rtenneti): We should set ProofVerifier in QuicClientSession. |
152 crypto_config_.SetProofVerifier(verifier); | 152 crypto_config_.SetProofVerifier(verifier); |
153 } | 153 } |
154 | 154 |
155 // SetChannelIDSigner sets a ChannelIDSigner that will be called when the | 155 // SetChannelIDSource sets a ChannelIDSource that will be called, when the |
156 // server supports channel IDs to sign a message proving possession of the | 156 // server supports channel IDs, to obtain a channel ID for signing a message |
157 // given ChannelID. This object takes ownership of |signer|. | 157 // proving possession of the channel ID. This object takes ownership of |
158 void SetChannelIDSigner(ChannelIDSigner* signer) { | 158 // |source|. |
159 crypto_config_.SetChannelIDSigner(signer); | 159 void SetChannelIDSource(ChannelIDSource* source) { |
| 160 crypto_config_.SetChannelIDSource(source); |
160 } | 161 } |
161 | 162 |
162 void SetSupportedVersions(const QuicVersionVector& versions) { | 163 void SetSupportedVersions(const QuicVersionVector& versions) { |
163 supported_versions_ = versions; | 164 supported_versions_ = versions; |
164 } | 165 } |
165 | 166 |
166 // Takes ownership of the listener. | 167 // Takes ownership of the listener. |
167 void set_response_listener(ResponseListener* listener) { | 168 void set_response_listener(ResponseListener* listener) { |
168 response_listener_.reset(listener); | 169 response_listener_.reset(listener); |
169 } | 170 } |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // Size of initial flow control receive window to advertise to server. | 250 // Size of initial flow control receive window to advertise to server. |
250 uint32 initial_flow_control_window_; | 251 uint32 initial_flow_control_window_; |
251 | 252 |
252 DISALLOW_COPY_AND_ASSIGN(QuicClient); | 253 DISALLOW_COPY_AND_ASSIGN(QuicClient); |
253 }; | 254 }; |
254 | 255 |
255 } // namespace tools | 256 } // namespace tools |
256 } // namespace net | 257 } // namespace net |
257 | 258 |
258 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 259 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
OLD | NEW |