| 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 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| 7 | 7 |
| 8 #include <iosfwd> |
| 8 #include <map> | 9 #include <map> |
| 9 #include <string> | 10 #include <string> |
| 11 |
| 10 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 11 #include "base/containers/mru_cache.h" | 13 #include "base/containers/mru_cache.h" |
| 12 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 13 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 14 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
| 15 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
| 16 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
| 17 #include "net/quic/quic_bandwidth.h" | 19 #include "net/quic/quic_bandwidth.h" |
| 18 #include "net/socket/next_proto.h" | 20 #include "net/socket/next_proto.h" |
| 19 #include "net/spdy/spdy_framer.h" // TODO(willchan): Reconsider this. | 21 #include "net/spdy/spdy_framer.h" // TODO(willchan): Reconsider this. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 return port < other.port; | 132 return port < other.port; |
| 131 } | 133 } |
| 132 | 134 |
| 133 std::string ToString() const; | 135 std::string ToString() const; |
| 134 | 136 |
| 135 AlternateProtocol protocol; | 137 AlternateProtocol protocol; |
| 136 std::string host; | 138 std::string host; |
| 137 uint16 port; | 139 uint16 port; |
| 138 }; | 140 }; |
| 139 | 141 |
| 142 NET_EXPORT std::ostream& operator<<( |
| 143 std::ostream& os, |
| 144 const AlternativeService& alternative_service); |
| 145 |
| 140 struct NET_EXPORT AlternativeServiceInfo { | 146 struct NET_EXPORT AlternativeServiceInfo { |
| 141 AlternativeServiceInfo() : alternative_service(), probability(0.0) {} | 147 AlternativeServiceInfo() : alternative_service(), probability(0.0) {} |
| 142 | 148 |
| 143 AlternativeServiceInfo(const AlternativeService& alternative_service, | 149 AlternativeServiceInfo(const AlternativeService& alternative_service, |
| 144 double probability) | 150 double probability) |
| 145 : alternative_service(alternative_service), probability(probability) {} | 151 : alternative_service(alternative_service), probability(probability) {} |
| 146 | 152 |
| 147 AlternativeServiceInfo(AlternateProtocol protocol, | 153 AlternativeServiceInfo(AlternateProtocol protocol, |
| 148 const std::string& host, | 154 const std::string& host, |
| 149 uint16 port, | 155 uint16 port, |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 | 336 |
| 331 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; | 337 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; |
| 332 | 338 |
| 333 private: | 339 private: |
| 334 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 340 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 335 }; | 341 }; |
| 336 | 342 |
| 337 } // namespace net | 343 } // namespace net |
| 338 | 344 |
| 339 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 345 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |