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

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

Issue 2195273003: Deprecate SPDY/3.1 and draft HTTP/2 enum values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | net/http/http_proxy_client_socket_wrapper.cc » ('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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 net::HttpResponseInfo::ConnectionInfo connection_info, 106 net::HttpResponseInfo::ConnectionInfo connection_info,
107 bool ssl_info_populated) { 107 bool ssl_info_populated) {
108 switch (connection_info) { 108 switch (connection_info) {
109 case net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN: 109 case net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN:
110 return ""; 110 return "";
111 case net::HttpResponseInfo::CONNECTION_INFO_HTTP0_9: 111 case net::HttpResponseInfo::CONNECTION_INFO_HTTP0_9:
112 case net::HttpResponseInfo::CONNECTION_INFO_HTTP1_0: 112 case net::HttpResponseInfo::CONNECTION_INFO_HTTP1_0:
113 case net::HttpResponseInfo::CONNECTION_INFO_HTTP1_1: 113 case net::HttpResponseInfo::CONNECTION_INFO_HTTP1_1:
114 return ssl_info_populated ? "HTTPS" : "HTTP"; 114 return ssl_info_populated ? "HTTPS" : "HTTP";
115 case net::HttpResponseInfo::CONNECTION_INFO_DEPRECATED_SPDY2: 115 case net::HttpResponseInfo::CONNECTION_INFO_DEPRECATED_SPDY2:
116 case net::HttpResponseInfo::CONNECTION_INFO_SPDY3: 116 case net::HttpResponseInfo::CONNECTION_INFO_DEPRECATED_SPDY3:
117 case net::HttpResponseInfo::CONNECTION_INFO_HTTP2_14: 117 case net::HttpResponseInfo::CONNECTION_INFO_DEPRECATED_HTTP2_14:
118 case net::HttpResponseInfo::CONNECTION_INFO_HTTP2_15: 118 case net::HttpResponseInfo::CONNECTION_INFO_DEPRECATED_HTTP2_15:
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_QUIC1_SPDY3: 121 case net::HttpResponseInfo::CONNECTION_INFO_QUIC1_SPDY3:
122 return "QUIC"; 122 return "QUIC";
123 case net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS: 123 case net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS:
124 NOTREACHED(); 124 NOTREACHED();
125 return ""; 125 return "";
126 } 126 }
127 NOTREACHED(); 127 NOTREACHED();
128 return ""; 128 return "";
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 ActualTime::~ActualTime() {} 228 ActualTime::~ActualTime() {}
229 229
230 base::Time ActualTime::Now() { return base::Time::Now(); } 230 base::Time ActualTime::Now() { return base::Time::Now(); }
231 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); } 231 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); }
232 232
233 std::unique_ptr<MockableTime::Timer> ActualTime::CreateTimer() { 233 std::unique_ptr<MockableTime::Timer> ActualTime::CreateTimer() {
234 return std::unique_ptr<MockableTime::Timer>(new ActualTimer()); 234 return std::unique_ptr<MockableTime::Timer>(new ActualTimer());
235 } 235 }
236 236
237 } // namespace domain_reliability 237 } // namespace domain_reliability
OLDNEW
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698