OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/domain_reliability/util.h" | 5 #include "components/domain_reliability/util.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // Invalid protocol version. | 138 // Invalid protocol version. |
139 { net::QUIC_INVALID_VERSION, "quic.invalid_version" }, | 139 { net::QUIC_INVALID_VERSION, "quic.invalid_version" }, |
140 | 140 |
141 // The Header ID for a stream was too far from the previous. | 141 // The Header ID for a stream was too far from the previous. |
142 { net::QUIC_INVALID_HEADER_ID, "quic.invalid_header_id" }, | 142 { net::QUIC_INVALID_HEADER_ID, "quic.invalid_header_id" }, |
143 // Negotiable parameter received during handshake had invalid value. | 143 // Negotiable parameter received during handshake had invalid value. |
144 { net::QUIC_INVALID_NEGOTIATED_VALUE, "quic.invalid_negotiated_value" }, | 144 { net::QUIC_INVALID_NEGOTIATED_VALUE, "quic.invalid_negotiated_value" }, |
145 // There was an error decompressing data. | 145 // There was an error decompressing data. |
146 { net::QUIC_DECOMPRESSION_FAILURE, "quic.decompression_failure" }, | 146 { net::QUIC_DECOMPRESSION_FAILURE, "quic.decompression_failure" }, |
147 // We hit our prenegotiated (or default) timeout | 147 // We hit our prenegotiated (or default) timeout |
148 { net::QUIC_CONNECTION_TIMED_OUT, "quic.connection.timed_out" }, | 148 { net::QUIC_NETWORK_IDLE_TIMEOUT, "quic.connection.idle_time_out" }, |
149 // We hit our overall connection timeout | 149 // We hit our overall connection timeout |
150 { net::QUIC_CONNECTION_OVERALL_TIMED_OUT, | 150 { net::QUIC_HANDSHAKE_TIMEOUT, |
151 "quic.connection.overall_timed_out" }, | 151 "quic.connection.handshake_timed_out" }, |
152 // There was an error encountered migrating addresses | 152 // There was an error encountered migrating addresses |
153 { net::QUIC_ERROR_MIGRATING_ADDRESS, "quic.error_migrating_address" }, | 153 { net::QUIC_ERROR_MIGRATING_ADDRESS, "quic.error_migrating_address" }, |
154 // There was an error while writing to the socket. | 154 // There was an error while writing to the socket. |
155 { net::QUIC_PACKET_WRITE_ERROR, "quic.packet.write_error" }, | 155 { net::QUIC_PACKET_WRITE_ERROR, "quic.packet.write_error" }, |
156 // There was an error while reading from the socket. | 156 // There was an error while reading from the socket. |
157 { net::QUIC_PACKET_READ_ERROR, "quic.packet.read_error" }, | 157 { net::QUIC_PACKET_READ_ERROR, "quic.packet.read_error" }, |
158 // We received a STREAM_FRAME with no data and no fin flag set. | 158 // We received a STREAM_FRAME with no data and no fin flag set. |
159 { net::QUIC_INVALID_STREAM_FRAME, "quic.invalid_stream_frame" }, | 159 { net::QUIC_INVALID_STREAM_FRAME, "quic.invalid_stream_frame" }, |
160 // We received invalid data on the headers stream. | 160 // We received invalid data on the headers stream. |
161 { net::QUIC_INVALID_HEADERS_STREAM_DATA, "quic.invalid_headers_stream_data" }, | 161 { net::QUIC_INVALID_HEADERS_STREAM_DATA, "quic.invalid_headers_stream_data" }, |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 ActualTime::~ActualTime() {} | 460 ActualTime::~ActualTime() {} |
461 | 461 |
462 base::Time ActualTime::Now() { return base::Time::Now(); } | 462 base::Time ActualTime::Now() { return base::Time::Now(); } |
463 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); } | 463 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); } |
464 | 464 |
465 scoped_ptr<MockableTime::Timer> ActualTime::CreateTimer() { | 465 scoped_ptr<MockableTime::Timer> ActualTime::CreateTimer() { |
466 return scoped_ptr<MockableTime::Timer>(new ActualTimer()); | 466 return scoped_ptr<MockableTime::Timer>(new ActualTimer()); |
467 } | 467 } |
468 | 468 |
469 } // namespace domain_reliability | 469 } // namespace domain_reliability |
OLD | NEW |