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

Side by Side Diff: net/tools/quic/quic_dispatcher.cc

Issue 2692813002: Server push cancellation: add a finch trial parameter (Closed)
Patch Set: Spin the message loop to ensure the client receives the response Created 3 years, 8 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
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_simple_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/tools/quic/quic_dispatcher.h" 5 #include "net/tools/quic/quic_dispatcher.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "net/quic/core/crypto/quic_random.h" 10 #include "net/quic/core/crypto/quic_random.h"
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 if (!writer_->IsWriteBlocked()) { 517 if (!writer_->IsWriteBlocked()) {
518 QUIC_BUG << "QuicDispatcher::OnWriteBlocked called when the writer is " 518 QUIC_BUG << "QuicDispatcher::OnWriteBlocked called when the writer is "
519 "not blocked."; 519 "not blocked.";
520 // Return without adding the connection to the blocked list, to avoid 520 // Return without adding the connection to the blocked list, to avoid
521 // infinite loops in OnCanWrite. 521 // infinite loops in OnCanWrite.
522 return; 522 return;
523 } 523 }
524 write_blocked_list_.insert(std::make_pair(blocked_writer, true)); 524 write_blocked_list_.insert(std::make_pair(blocked_writer, true));
525 } 525 }
526 526
527 void QuicDispatcher::OnRstStreamReceived(const QuicRstStreamFrame& frame) {}
528
527 void QuicDispatcher::OnConnectionAddedToTimeWaitList( 529 void QuicDispatcher::OnConnectionAddedToTimeWaitList(
528 QuicConnectionId connection_id) { 530 QuicConnectionId connection_id) {
529 QUIC_DLOG(INFO) << "Connection " << connection_id 531 QUIC_DLOG(INFO) << "Connection " << connection_id
530 << " added to time wait list."; 532 << " added to time wait list.";
531 } 533 }
532 534
533 void QuicDispatcher::OnPacket() {} 535 void QuicDispatcher::OnPacket() {}
534 536
535 void QuicDispatcher::OnError(QuicFramer* framer) { 537 void QuicDispatcher::OnError(QuicFramer* framer) {
536 QuicErrorCode error = framer->error(); 538 QuicErrorCode error = framer->error();
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 void QuicDispatcher::DeliverPacketsToSession( 982 void QuicDispatcher::DeliverPacketsToSession(
981 const std::list<BufferedPacket>& packets, 983 const std::list<BufferedPacket>& packets,
982 QuicSession* session) { 984 QuicSession* session) {
983 for (const BufferedPacket& packet : packets) { 985 for (const BufferedPacket& packet : packets) {
984 session->ProcessUdpPacket(packet.server_address, packet.client_address, 986 session->ProcessUdpPacket(packet.server_address, packet.client_address,
985 *(packet.packet)); 987 *(packet.packet));
986 } 988 }
987 } 989 }
988 990
989 } // namespace net 991 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_simple_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698