| 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/quic/quic_stream_factory.h" | 5 #include "net/quic/quic_stream_factory.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/cpu.h" | 9 #include "base/cpu.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "net/quic/quic_default_packet_writer.h" | 33 #include "net/quic/quic_default_packet_writer.h" |
| 34 #include "net/quic/quic_http_stream.h" | 34 #include "net/quic/quic_http_stream.h" |
| 35 #include "net/quic/quic_protocol.h" | 35 #include "net/quic/quic_protocol.h" |
| 36 #include "net/quic/quic_server_id.h" | 36 #include "net/quic/quic_server_id.h" |
| 37 #include "net/socket/client_socket_factory.h" | 37 #include "net/socket/client_socket_factory.h" |
| 38 | 38 |
| 39 #if defined(OS_WIN) | 39 #if defined(OS_WIN) |
| 40 #include "base/win/windows_version.h" | 40 #include "base/win/windows_version.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 using std::string; | |
| 44 using std::vector; | |
| 45 | |
| 46 namespace net { | 43 namespace net { |
| 47 | 44 |
| 48 namespace { | 45 namespace { |
| 49 | 46 |
| 50 enum CreateSessionFailure { | 47 enum CreateSessionFailure { |
| 51 CREATION_ERROR_CONNECTING_SOCKET, | 48 CREATION_ERROR_CONNECTING_SOCKET, |
| 52 CREATION_ERROR_SETTING_RECEIVE_BUFFER, | 49 CREATION_ERROR_SETTING_RECEIVE_BUFFER, |
| 53 CREATION_ERROR_SETTING_SEND_BUFFER, | 50 CREATION_ERROR_SETTING_SEND_BUFFER, |
| 54 CREATION_ERROR_MAX | 51 CREATION_ERROR_MAX |
| 55 }; | 52 }; |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 http_server_properties_->ClearAlternateProtocol(server); | 1071 http_server_properties_->ClearAlternateProtocol(server); |
| 1075 http_server_properties_->SetAlternateProtocol( | 1072 http_server_properties_->SetAlternateProtocol( |
| 1076 server, alternate.port, alternate.protocol, 1); | 1073 server, alternate.port, alternate.protocol, 1); |
| 1077 DCHECK_EQ(QUIC, | 1074 DCHECK_EQ(QUIC, |
| 1078 http_server_properties_->GetAlternateProtocol(server).protocol); | 1075 http_server_properties_->GetAlternateProtocol(server).protocol); |
| 1079 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( | 1076 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( |
| 1080 server)); | 1077 server)); |
| 1081 } | 1078 } |
| 1082 | 1079 |
| 1083 } // namespace net | 1080 } // namespace net |
| OLD | NEW |