| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 case net::HttpResponseInfo::CONNECTION_INFO_HTTP2: | 119 case net::HttpResponseInfo::CONNECTION_INFO_HTTP2: |
| 120 return "SPDY"; | 120 return "SPDY"; |
| 121 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION: | 121 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION: |
| 122 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_32: | 122 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_32: |
| 123 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_33: | 123 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_33: |
| 124 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_34: | 124 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_34: |
| 125 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_35: | 125 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_35: |
| 126 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_36: | 126 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_36: |
| 127 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_37: | 127 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_37: |
| 128 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_38: | 128 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_38: |
| 129 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_39: |
| 129 return "QUIC"; | 130 return "QUIC"; |
| 130 case net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS: | 131 case net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS: |
| 131 NOTREACHED(); | 132 NOTREACHED(); |
| 132 return ""; | 133 return ""; |
| 133 } | 134 } |
| 134 NOTREACHED(); | 135 NOTREACHED(); |
| 135 return ""; | 136 return ""; |
| 136 } | 137 } |
| 137 | 138 |
| 138 int GetNetErrorFromURLRequestStatus(const net::URLRequestStatus& status) { | 139 int GetNetErrorFromURLRequestStatus(const net::URLRequestStatus& status) { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 ActualTime::~ActualTime() {} | 237 ActualTime::~ActualTime() {} |
| 237 | 238 |
| 238 base::Time ActualTime::Now() { return base::Time::Now(); } | 239 base::Time ActualTime::Now() { return base::Time::Now(); } |
| 239 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); } | 240 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); } |
| 240 | 241 |
| 241 std::unique_ptr<MockableTime::Timer> ActualTime::CreateTimer() { | 242 std::unique_ptr<MockableTime::Timer> ActualTime::CreateTimer() { |
| 242 return std::unique_ptr<MockableTime::Timer>(new ActualTimer()); | 243 return std::unique_ptr<MockableTime::Timer>(new ActualTimer()); |
| 243 } | 244 } |
| 244 | 245 |
| 245 } // namespace domain_reliability | 246 } // namespace domain_reliability |
| OLD | NEW |