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