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

Side by Side Diff: net/quic/chromium/quic_chromium_client_stream.cc

Issue 2487613002: Landing Recent QUIC changes until 12:43 PM, Nov 5, 2016 UTC+8 (Closed)
Patch Set: Created 4 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/chromium/quic_chromium_client_stream.h" 5 #include "net/quic/chromium/quic_chromium_client_stream.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // will be able to, potentially, read all data which has queued up. 102 // will be able to, potentially, read all data which has queued up.
103 NotifyDelegateOfDataAvailableLater(); 103 NotifyDelegateOfDataAvailableLater();
104 } 104 }
105 105
106 void QuicChromiumClientStream::OnClose() { 106 void QuicChromiumClientStream::OnClose() {
107 if (delegate_) { 107 if (delegate_) {
108 delegate_->OnClose(); 108 delegate_->OnClose();
109 delegate_ = nullptr; 109 delegate_ = nullptr;
110 delegate_tasks_.clear(); 110 delegate_tasks_.clear();
111 } 111 }
112 ReliableQuicStream::OnClose(); 112 QuicStream::OnClose();
113 } 113 }
114 114
115 void QuicChromiumClientStream::OnCanWrite() { 115 void QuicChromiumClientStream::OnCanWrite() {
116 ReliableQuicStream::OnCanWrite(); 116 QuicStream::OnCanWrite();
117 117
118 if (!HasBufferedData() && !callback_.is_null()) { 118 if (!HasBufferedData() && !callback_.is_null()) {
119 base::ResetAndReturn(&callback_).Run(OK); 119 base::ResetAndReturn(&callback_).Run(OK);
120 } 120 }
121 } 121 }
122 122
123 size_t QuicChromiumClientStream::WriteHeaders( 123 size_t QuicChromiumClientStream::WriteHeaders(
124 SpdyHeaderBlock header_block, 124 SpdyHeaderBlock header_block,
125 bool fin, 125 bool fin,
126 QuicAckListenerInterface* ack_notifier_delegate) { 126 QuicAckListenerInterface* ack_notifier_delegate) {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 void QuicChromiumClientStream::DisableConnectionMigration() { 285 void QuicChromiumClientStream::DisableConnectionMigration() {
286 can_migrate_ = false; 286 can_migrate_ = false;
287 } 287 }
288 288
289 bool QuicChromiumClientStream::IsFirstStream() { 289 bool QuicChromiumClientStream::IsFirstStream() {
290 return id() == kHeadersStreamId + 2; 290 return id() == kHeadersStreamId + 2;
291 } 291 }
292 292
293 } // namespace net 293 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_client_session.cc ('k') | net/quic/chromium/quic_chromium_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698