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

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: Add UMA logging of Token Binding support and NetLog event for Token Binding key lookup Created 5 years, 1 month 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 } 272 }
273 273
274 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { 274 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) {
275 if (!session_) 275 if (!session_)
276 return false; 276 return false;
277 277
278 *endpoint = session_->peer_address(); 278 *endpoint = session_->peer_address();
279 return true; 279 return true;
280 } 280 }
281 281
282 int QuicHttpStream::GetProvidedTokenBindingWithKey(
283 const scoped_ptr<crypto::ECPrivateKey>& key,
284 std::string* header_out) {
285 NOTREACHED();
286 return ERR_NOT_IMPLEMENTED;
287 }
288
282 void QuicHttpStream::Drain(HttpNetworkSession* session) { 289 void QuicHttpStream::Drain(HttpNetworkSession* session) {
283 NOTREACHED(); 290 NOTREACHED();
284 Close(false); 291 Close(false);
285 delete this; 292 delete this;
286 } 293 }
287 294
288 void QuicHttpStream::SetPriority(RequestPriority priority) { 295 void QuicHttpStream::SetPriority(RequestPriority priority) {
289 priority_ = priority; 296 priority_ = priority;
290 } 297 }
291 298
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); 555 closed_stream_sent_bytes_ = stream_->stream_bytes_written();
549 stream_ = nullptr; 556 stream_ = nullptr;
550 557
551 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress 558 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress
552 // read. 559 // read.
553 if (request_body_stream_) 560 if (request_body_stream_)
554 request_body_stream_->Reset(); 561 request_body_stream_->Reset();
555 } 562 }
556 563
557 } // namespace net 564 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698