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

Side by Side Diff: net/http/http_network_transaction.h

Issue 1781003003: Implement referred Token Bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits; add unittest Created 4 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 (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 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 SSLFailureState server_ssl_failure_state_; 334 SSLFailureState server_ssl_failure_state_;
335 // fallback_error_code contains the error code that caused the last TLS 335 // fallback_error_code contains the error code that caused the last TLS
336 // fallback. If the fallback connection results in 336 // fallback. If the fallback connection results in
337 // ERR_SSL_INAPPROPRIATE_FALLBACK (i.e. the server indicated that the 337 // ERR_SSL_INAPPROPRIATE_FALLBACK (i.e. the server indicated that the
338 // fallback should not have been needed) then we use this value to return the 338 // fallback should not have been needed) then we use this value to return the
339 // original error that triggered the fallback. 339 // original error that triggered the fallback.
340 int fallback_error_code_; 340 int fallback_error_code_;
341 // The SSLFailureState which caused the last TLS version fallback. 341 // The SSLFailureState which caused the last TLS version fallback.
342 SSLFailureState fallback_failure_state_; 342 SSLFailureState fallback_failure_state_;
343 343
344 // Key to use for signing message in Token Binding header. 344 // Keys to use for signing message in Token Binding header.
345 scoped_ptr<crypto::ECPrivateKey> token_binding_key_; 345 scoped_ptr<crypto::ECPrivateKey> provided_token_binding_key_;
346 // Object to manage lookup of |token_binding_key_|. 346 scoped_ptr<crypto::ECPrivateKey> referred_token_binding_key_;
347 // Object to manage lookup of |provided_token_binding_key_| and
348 // |referred_token_binding_key_|.
347 ChannelIDService::Request token_binding_request_; 349 ChannelIDService::Request token_binding_request_;
348 350
349 HttpRequestHeaders request_headers_; 351 HttpRequestHeaders request_headers_;
350 352
351 // The size in bytes of the buffer we use to drain the response body that 353 // The size in bytes of the buffer we use to drain the response body that
352 // we want to throw away. The response body is typically a small error 354 // we want to throw away. The response body is typically a small error
353 // page just a few hundred bytes long. 355 // page just a few hundred bytes long.
354 static const int kDrainBodyBufferSize = 1024; 356 static const int kDrainBodyBufferSize = 1024;
355 357
356 // User buffer and length passed to the Read method. 358 // User buffer and length passed to the Read method.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 ConnectionAttempts connection_attempts_; 390 ConnectionAttempts connection_attempts_;
389 IPEndPoint remote_endpoint_; 391 IPEndPoint remote_endpoint_;
390 // Network error details for this transaction. 392 // Network error details for this transaction.
391 NetErrorDetails net_error_details_; 393 NetErrorDetails net_error_details_;
392 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 394 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
393 }; 395 };
394 396
395 } // namespace net 397 } // namespace net
396 398
397 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 399 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698