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

Side by Side Diff: net/quic/quic_http_stream.cc

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: Remove sequence numbers from mock reads Created 4 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
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 #include "net/quic/quic_http_stream.h" 5 #include "net/quic/quic_http_stream.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 274 }
275 275
276 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { 276 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) {
277 if (!session_) 277 if (!session_)
278 return false; 278 return false;
279 279
280 *endpoint = session_->peer_address(); 280 *endpoint = session_->peer_address();
281 return true; 281 return true;
282 } 282 }
283 283
284 Error QuicHttpStream::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
285 std::vector<uint8_t>* out) {
286 NOTREACHED();
287 return ERR_NOT_IMPLEMENTED;
288 }
289
284 void QuicHttpStream::Drain(HttpNetworkSession* session) { 290 void QuicHttpStream::Drain(HttpNetworkSession* session) {
285 NOTREACHED(); 291 NOTREACHED();
286 Close(false); 292 Close(false);
287 delete this; 293 delete this;
288 } 294 }
289 295
290 void QuicHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { 296 void QuicHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) {
291 if (was_handshake_confirmed_) 297 if (was_handshake_confirmed_)
292 details->quic_connection_error = quic_connection_error_; 298 details->quic_connection_error = quic_connection_error_;
293 } 299 }
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); 565 closed_stream_sent_bytes_ = stream_->stream_bytes_written();
560 stream_ = nullptr; 566 stream_ = nullptr;
561 567
562 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress 568 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress
563 // read. 569 // read.
564 if (request_body_stream_) 570 if (request_body_stream_)
565 request_body_stream_->Reset(); 571 request_body_stream_->Reset();
566 } 572 }
567 573
568 } // namespace net 574 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698