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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |