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

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

Issue 2875333002: Landing Recent QUIC changes until Mon May 8 21:42:46 2017 +0000 (Closed)
Patch Set: Created 3 years, 7 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
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_39:
130 case net::HttpResponseInfo::CONNECTION_INFO_QUIC_40:
130 return "QUIC"; 131 return "QUIC";
131 case net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS: 132 case net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS:
132 NOTREACHED(); 133 NOTREACHED();
133 return ""; 134 return "";
134 } 135 }
135 NOTREACHED(); 136 NOTREACHED();
136 return ""; 137 return "";
137 } 138 }
138 139
139 int GetNetErrorFromURLRequestStatus(const net::URLRequestStatus& status) { 140 int GetNetErrorFromURLRequestStatus(const net::URLRequestStatus& status) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 ActualTime::~ActualTime() {} 238 ActualTime::~ActualTime() {}
238 239
239 base::Time ActualTime::Now() { return base::Time::Now(); } 240 base::Time ActualTime::Now() { return base::Time::Now(); }
240 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); } 241 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); }
241 242
242 std::unique_ptr<MockableTime::Timer> ActualTime::CreateTimer() { 243 std::unique_ptr<MockableTime::Timer> ActualTime::CreateTimer() {
243 return std::unique_ptr<MockableTime::Timer>(new ActualTimer()); 244 return std::unique_ptr<MockableTime::Timer>(new ActualTimer());
244 } 245 }
245 246
246 } // namespace domain_reliability 247 } // namespace domain_reliability
OLDNEW
« no previous file with comments | « chrome/browser/page_load_metrics/observers/protocol_page_load_metrics_observer.cc ('k') | net/http/http_response_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698