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

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: rebase Created 5 years, 2 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 283 }
284 284
285 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { 285 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) {
286 if (!session_) 286 if (!session_)
287 return false; 287 return false;
288 288
289 *endpoint = session_->peer_address(); 289 *endpoint = session_->peer_address();
290 return true; 290 return true;
291 } 291 }
292 292
293 int QuicHttpStream::GetTokenBindingMessageHeader(std::string* out) {
294 return ERR_NOT_IMPLEMENTED;
295 }
296
293 void QuicHttpStream::Drain(HttpNetworkSession* session) { 297 void QuicHttpStream::Drain(HttpNetworkSession* session) {
294 NOTREACHED(); 298 NOTREACHED();
295 Close(false); 299 Close(false);
296 delete this; 300 delete this;
297 } 301 }
298 302
299 void QuicHttpStream::SetPriority(RequestPriority priority) { 303 void QuicHttpStream::SetPriority(RequestPriority priority) {
300 priority_ = priority; 304 priority_ = priority;
301 } 305 }
302 306
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); 567 closed_stream_sent_bytes_ = stream_->stream_bytes_written();
564 stream_ = nullptr; 568 stream_ = nullptr;
565 569
566 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress 570 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress
567 // read. 571 // read.
568 if (request_body_stream_) 572 if (request_body_stream_)
569 request_body_stream_->Reset(); 573 request_body_stream_->Reset();
570 } 574 }
571 575
572 } // namespace net 576 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698