| 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_time_wait_list_manager.h" | 5 #include "net/tools/quic/quic_time_wait_list_manager.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 | 8 |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 if (!is_write_blocked_) { | 163 if (!is_write_blocked_) { |
| 164 pending_packets_queue_.pop_front(); | 164 pending_packets_queue_.pop_front(); |
| 165 delete queued_packet; | 165 delete queued_packet; |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 | 168 |
| 169 return !is_write_blocked_; | 169 return !is_write_blocked_; |
| 170 } | 170 } |
| 171 | 171 |
| 172 void QuicTimeWaitListManager::OnError(QuicFramer* framer) { | 172 void QuicTimeWaitListManager::OnError(QuicFramer* framer) { |
| 173 DLOG(INFO) << QuicUtils::ErrorToString(framer->error()); | 173 DVLOG(0) << QuicUtils::ErrorToString(framer->error()); |
| 174 } | 174 } |
| 175 | 175 |
| 176 bool QuicTimeWaitListManager::OnProtocolVersionMismatch( | 176 bool QuicTimeWaitListManager::OnProtocolVersionMismatch( |
| 177 QuicVersion received_version) { | 177 QuicVersion received_version) { |
| 178 // Drop such packets whose version don't match. | 178 // Drop such packets whose version don't match. |
| 179 return false; | 179 return false; |
| 180 } | 180 } |
| 181 | 181 |
| 182 bool QuicTimeWaitListManager::OnUnauthenticatedHeader( | 182 bool QuicTimeWaitListManager::OnUnauthenticatedHeader( |
| 183 const QuicPacketHeader& header) { | 183 const QuicPacketHeader& header) { |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 delete it->second.close_packet; | 354 delete it->second.close_packet; |
| 355 guid_map_.erase(oldest_guid->guid); | 355 guid_map_.erase(oldest_guid->guid); |
| 356 time_ordered_guid_list_.pop_front(); | 356 time_ordered_guid_list_.pop_front(); |
| 357 delete oldest_guid; | 357 delete oldest_guid; |
| 358 } | 358 } |
| 359 SetGuidCleanUpAlarm(); | 359 SetGuidCleanUpAlarm(); |
| 360 } | 360 } |
| 361 | 361 |
| 362 } // namespace tools | 362 } // namespace tools |
| 363 } // namespace net | 363 } // namespace net |
| OLD | NEW |