OLD | NEW |
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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 switch (connection_info) { | 387 switch (connection_info) { |
388 case CONNECTION_INFO_UNKNOWN: | 388 case CONNECTION_INFO_UNKNOWN: |
389 return "unknown"; | 389 return "unknown"; |
390 case CONNECTION_INFO_HTTP1: | 390 case CONNECTION_INFO_HTTP1: |
391 return "http/1"; | 391 return "http/1"; |
392 case CONNECTION_INFO_DEPRECATED_SPDY2: | 392 case CONNECTION_INFO_DEPRECATED_SPDY2: |
393 return "spdy/2"; | 393 return "spdy/2"; |
394 case CONNECTION_INFO_SPDY3: | 394 case CONNECTION_INFO_SPDY3: |
395 return "spdy/3"; | 395 return "spdy/3"; |
396 case CONNECTION_INFO_SPDY4: | 396 case CONNECTION_INFO_SPDY4: |
397 // This is the HTTP/2 draft 11 identifier. For internal | 397 // This is the HTTP/2 draft 12 identifier. For internal |
398 // consistency, HTTP/2 is named SPDY4 within Chromium. | 398 // consistency, HTTP/2 is named SPDY4 within Chromium. |
399 return "h2-11"; | 399 return "h2-12"; |
400 case CONNECTION_INFO_QUIC1_SPDY3: | 400 case CONNECTION_INFO_QUIC1_SPDY3: |
401 return "quic/1+spdy/3"; | 401 return "quic/1+spdy/3"; |
402 case NUM_OF_CONNECTION_INFOS: | 402 case NUM_OF_CONNECTION_INFOS: |
403 break; | 403 break; |
404 } | 404 } |
405 NOTREACHED(); | 405 NOTREACHED(); |
406 return ""; | 406 return ""; |
407 } | 407 } |
408 | 408 |
409 } // namespace net | 409 } // namespace net |
OLD | NEW |