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

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

Issue 2119623002: Add metrics to track HTTP/0.9 usage for main frames and subresources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: placate clang Created 4 years, 5 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 (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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 // Since ConnectionInfo is persisted to disk, deprecated values have to be 429 // Since ConnectionInfo is persisted to disk, deprecated values have to be
430 // handled. Note that h2-14 and h2-15 are essentially wire compatible with 430 // handled. Note that h2-14 and h2-15 are essentially wire compatible with
431 // h2. 431 // h2.
432 // Intentional fallthrough. 432 // Intentional fallthrough.
433 case CONNECTION_INFO_HTTP2_14: 433 case CONNECTION_INFO_HTTP2_14:
434 case CONNECTION_INFO_HTTP2_15: 434 case CONNECTION_INFO_HTTP2_15:
435 case CONNECTION_INFO_HTTP2: 435 case CONNECTION_INFO_HTTP2:
436 return "h2"; 436 return "h2";
437 case CONNECTION_INFO_QUIC1_SPDY3: 437 case CONNECTION_INFO_QUIC1_SPDY3:
438 return "quic/1+spdy/3"; 438 return "quic/1+spdy/3";
439 case CONNECTION_INFO_HTTP0_9:
440 return "http/0.9";
439 case NUM_OF_CONNECTION_INFOS: 441 case NUM_OF_CONNECTION_INFOS:
440 break; 442 break;
441 } 443 }
442 NOTREACHED(); 444 NOTREACHED();
443 return ""; 445 return "";
444 } 446 }
445 447
446 } // namespace net 448 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698