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

Side by Side Diff: components/domain_reliability/util.cc

Issue 2808273006: Landing Recent QUIC changes until Sun Apr 9 16:12:55 (Closed)
Patch Set: increment enabled_options in e2e test 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 | « components/domain_reliability/quic_error_mapping.cc ('k') | net/http/http_response_info.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 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
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
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
OLDNEW
« no previous file with comments | « components/domain_reliability/quic_error_mapping.cc ('k') | net/http/http_response_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698