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

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

Issue 485833002: HTTP2 draft 14 support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ignore_result(). Created 6 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 | « net/data/spdy_tests/examples_07.hpack ('k') | net/http/http_server_properties.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 (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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 switch (connection_info) { 389 switch (connection_info) {
390 case CONNECTION_INFO_UNKNOWN: 390 case CONNECTION_INFO_UNKNOWN:
391 return "unknown"; 391 return "unknown";
392 case CONNECTION_INFO_HTTP1: 392 case CONNECTION_INFO_HTTP1:
393 return "http/1"; 393 return "http/1";
394 case CONNECTION_INFO_DEPRECATED_SPDY2: 394 case CONNECTION_INFO_DEPRECATED_SPDY2:
395 return "spdy/2"; 395 return "spdy/2";
396 case CONNECTION_INFO_SPDY3: 396 case CONNECTION_INFO_SPDY3:
397 return "spdy/3"; 397 return "spdy/3";
398 case CONNECTION_INFO_SPDY4: 398 case CONNECTION_INFO_SPDY4:
399 // This is the HTTP/2 draft 13 identifier. For internal 399 // This is the HTTP/2 draft 14 identifier. For internal
400 // consistency, HTTP/2 is named SPDY4 within Chromium. 400 // consistency, HTTP/2 is named SPDY4 within Chromium.
401 return "h2-13"; 401 return "h2-14";
402 case CONNECTION_INFO_QUIC1_SPDY3: 402 case CONNECTION_INFO_QUIC1_SPDY3:
403 return "quic/1+spdy/3"; 403 return "quic/1+spdy/3";
404 case NUM_OF_CONNECTION_INFOS: 404 case NUM_OF_CONNECTION_INFOS:
405 break; 405 break;
406 } 406 }
407 NOTREACHED(); 407 NOTREACHED();
408 return ""; 408 return "";
409 } 409 }
410 410
411 } // namespace net 411 } // namespace net
OLDNEW
« no previous file with comments | « net/data/spdy_tests/examples_07.hpack ('k') | net/http/http_server_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698