| OLD | NEW |
| 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/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 380 |
| 381 void QuicDispatcher::OnDecryptedPacket(EncryptionLevel level) { | 381 void QuicDispatcher::OnDecryptedPacket(EncryptionLevel level) { |
| 382 DCHECK(false); | 382 DCHECK(false); |
| 383 } | 383 } |
| 384 | 384 |
| 385 bool QuicDispatcher::OnPacketHeader(const QuicPacketHeader& /*header*/) { | 385 bool QuicDispatcher::OnPacketHeader(const QuicPacketHeader& /*header*/) { |
| 386 DCHECK(false); | 386 DCHECK(false); |
| 387 return false; | 387 return false; |
| 388 } | 388 } |
| 389 | 389 |
| 390 void QuicDispatcher::OnRevivedPacket() { | |
| 391 DCHECK(false); | |
| 392 } | |
| 393 | |
| 394 void QuicDispatcher::OnFecProtectedPayload(StringPiece /*payload*/) { | |
| 395 DCHECK(false); | |
| 396 } | |
| 397 | |
| 398 bool QuicDispatcher::OnStreamFrame(const QuicStreamFrame& /*frame*/) { | 390 bool QuicDispatcher::OnStreamFrame(const QuicStreamFrame& /*frame*/) { |
| 399 DCHECK(false); | 391 DCHECK(false); |
| 400 return false; | 392 return false; |
| 401 } | 393 } |
| 402 | 394 |
| 403 bool QuicDispatcher::OnAckFrame(const QuicAckFrame& /*frame*/) { | 395 bool QuicDispatcher::OnAckFrame(const QuicAckFrame& /*frame*/) { |
| 404 DCHECK(false); | 396 DCHECK(false); |
| 405 return false; | 397 return false; |
| 406 } | 398 } |
| 407 | 399 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 bool QuicDispatcher::OnBlockedFrame(const QuicBlockedFrame& frame) { | 432 bool QuicDispatcher::OnBlockedFrame(const QuicBlockedFrame& frame) { |
| 441 DCHECK(false); | 433 DCHECK(false); |
| 442 return false; | 434 return false; |
| 443 } | 435 } |
| 444 | 436 |
| 445 bool QuicDispatcher::OnPathCloseFrame(const QuicPathCloseFrame& frame) { | 437 bool QuicDispatcher::OnPathCloseFrame(const QuicPathCloseFrame& frame) { |
| 446 DCHECK(false); | 438 DCHECK(false); |
| 447 return false; | 439 return false; |
| 448 } | 440 } |
| 449 | 441 |
| 450 void QuicDispatcher::OnFecData(StringPiece /*redundancy*/) { | |
| 451 DCHECK(false); | |
| 452 } | |
| 453 | |
| 454 void QuicDispatcher::OnPacketComplete() { | 442 void QuicDispatcher::OnPacketComplete() { |
| 455 DCHECK(false); | 443 DCHECK(false); |
| 456 } | 444 } |
| 457 | 445 |
| 458 QuicServerSessionBase* QuicDispatcher::CreateQuicSession( | 446 QuicServerSessionBase* QuicDispatcher::CreateQuicSession( |
| 459 QuicConnectionId connection_id, | 447 QuicConnectionId connection_id, |
| 460 const IPEndPoint& client_address) { | 448 const IPEndPoint& client_address) { |
| 461 // The QuicServerSessionBase takes ownership of |connection| below. | 449 // The QuicServerSessionBase takes ownership of |connection| below. |
| 462 QuicConnection* connection = new QuicConnection( | 450 QuicConnection* connection = new QuicConnection( |
| 463 connection_id, client_address, helper_.get(), CreatePerConnectionWriter(), | 451 connection_id, client_address, helper_.get(), CreatePerConnectionWriter(), |
| (...skipping 28 matching lines...) Expand all Loading... |
| 492 | 480 |
| 493 QuicPacketWriter* QuicDispatcher::CreatePerConnectionWriter() { | 481 QuicPacketWriter* QuicDispatcher::CreatePerConnectionWriter() { |
| 494 return new QuicPerConnectionPacketWriter(writer_.get()); | 482 return new QuicPerConnectionPacketWriter(writer_.get()); |
| 495 } | 483 } |
| 496 | 484 |
| 497 void QuicDispatcher::SetLastError(QuicErrorCode error) { | 485 void QuicDispatcher::SetLastError(QuicErrorCode error) { |
| 498 last_error_ = error; | 486 last_error_ = error; |
| 499 } | 487 } |
| 500 | 488 |
| 501 } // namespace net | 489 } // namespace net |
| OLD | NEW |