| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 return CONNECTION_INFO_SPDY3; | 338 return CONNECTION_INFO_SPDY3; |
| 339 case kProtoSPDY4a2: | 339 case kProtoSPDY4a2: |
| 340 return CONNECTION_INFO_SPDY4A2; | 340 return CONNECTION_INFO_SPDY4A2; |
| 341 case kProtoHTTP2Draft04: | 341 case kProtoHTTP2Draft04: |
| 342 return CONNECTION_INFO_HTTP2_DRAFT_04; | 342 return CONNECTION_INFO_HTTP2_DRAFT_04; |
| 343 case kProtoQUIC1SPDY3: | 343 case kProtoQUIC1SPDY3: |
| 344 return CONNECTION_INFO_QUIC1_SPDY3; | 344 return CONNECTION_INFO_QUIC1_SPDY3; |
| 345 | 345 |
| 346 case kProtoUnknown: | 346 case kProtoUnknown: |
| 347 case kProtoHTTP11: | 347 case kProtoHTTP11: |
| 348 case kProtoSPDY1: | |
| 349 case kProtoSPDY21: | |
| 350 break; | 348 break; |
| 351 } | 349 } |
| 352 | 350 |
| 353 NOTREACHED(); | 351 NOTREACHED(); |
| 354 return CONNECTION_INFO_UNKNOWN; | 352 return CONNECTION_INFO_UNKNOWN; |
| 355 } | 353 } |
| 356 | 354 |
| 357 // static | 355 // static |
| 358 std::string HttpResponseInfo::ConnectionInfoToString( | 356 std::string HttpResponseInfo::ConnectionInfoToString( |
| 359 ConnectionInfo connection_info) { | 357 ConnectionInfo connection_info) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 373 case CONNECTION_INFO_QUIC1_SPDY3: | 371 case CONNECTION_INFO_QUIC1_SPDY3: |
| 374 return "quic/1+spdy/3"; | 372 return "quic/1+spdy/3"; |
| 375 case NUM_OF_CONNECTION_INFOS: | 373 case NUM_OF_CONNECTION_INFOS: |
| 376 break; | 374 break; |
| 377 } | 375 } |
| 378 NOTREACHED(); | 376 NOTREACHED(); |
| 379 return ""; | 377 return ""; |
| 380 } | 378 } |
| 381 | 379 |
| 382 } // namespace net | 380 } // namespace net |
| OLD | NEW |