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

Side by Side Diff: net/http/http_response_info.cc

Issue 1579213006: Remove unused SPDY/3 enum values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove trivial comparisons; change non-trivial ones. Created 4 years, 11 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_server_properties.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/http/http_response_info.h" 5 #include "net/http/http_response_info.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/pickle.h" 8 #include "base/pickle.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "net/base/auth.h" 10 #include "net/base/auth.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 if (connection_info != CONNECTION_INFO_UNKNOWN) 382 if (connection_info != CONNECTION_INFO_UNKNOWN)
383 pickle->WriteInt(static_cast<int>(connection_info)); 383 pickle->WriteInt(static_cast<int>(connection_info));
384 384
385 if (ssl_info.is_valid() && ssl_info.key_exchange_info != 0) 385 if (ssl_info.is_valid() && ssl_info.key_exchange_info != 0)
386 pickle->WriteInt(ssl_info.key_exchange_info); 386 pickle->WriteInt(ssl_info.key_exchange_info);
387 } 387 }
388 388
389 HttpResponseInfo::ConnectionInfo HttpResponseInfo::ConnectionInfoFromNextProto( 389 HttpResponseInfo::ConnectionInfo HttpResponseInfo::ConnectionInfoFromNextProto(
390 NextProto next_proto) { 390 NextProto next_proto) {
391 switch (next_proto) { 391 switch (next_proto) {
392 case kProtoSPDY3:
393 case kProtoSPDY31: 392 case kProtoSPDY31:
394 return CONNECTION_INFO_SPDY3; 393 return CONNECTION_INFO_SPDY3;
395 case kProtoHTTP2: 394 case kProtoHTTP2:
396 return CONNECTION_INFO_HTTP2; 395 return CONNECTION_INFO_HTTP2;
397 case kProtoQUIC1SPDY3: 396 case kProtoQUIC1SPDY3:
398 return CONNECTION_INFO_QUIC1_SPDY3; 397 return CONNECTION_INFO_QUIC1_SPDY3;
399 398
400 case kProtoUnknown: 399 case kProtoUnknown:
401 case kProtoHTTP11: 400 case kProtoHTTP11:
402 break; 401 break;
(...skipping 27 matching lines...) Expand all
430 case CONNECTION_INFO_QUIC1_SPDY3: 429 case CONNECTION_INFO_QUIC1_SPDY3:
431 return "quic/1+spdy/3"; 430 return "quic/1+spdy/3";
432 case NUM_OF_CONNECTION_INFOS: 431 case NUM_OF_CONNECTION_INFOS:
433 break; 432 break;
434 } 433 }
435 NOTREACHED(); 434 NOTREACHED();
436 return ""; 435 return "";
437 } 436 }
438 437
439 } // namespace net 438 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/http/http_server_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698