| 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_SPDY_SPDY_SESSION_POOL_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_POOL_H_ |
| 6 #define NET_SPDY_SPDY_SESSION_POOL_H_ | 6 #define NET_SPDY_SPDY_SESSION_POOL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 const HostPortProxyPair& host_port_proxy_pair) const; | 175 const HostPortProxyPair& host_port_proxy_pair) const; |
| 176 void RemoveSessionList(const HostPortProxyPair& host_port_proxy_pair); | 176 void RemoveSessionList(const HostPortProxyPair& host_port_proxy_pair); |
| 177 | 177 |
| 178 // Does a DNS cache lookup for |pair|, and returns the |addresses| found. | 178 // Does a DNS cache lookup for |pair|, and returns the |addresses| found. |
| 179 // Returns true if addresses found, false otherwise. | 179 // Returns true if addresses found, false otherwise. |
| 180 bool LookupAddresses(const HostPortProxyPair& pair, | 180 bool LookupAddresses(const HostPortProxyPair& pair, |
| 181 const BoundNetLog& net_log, | 181 const BoundNetLog& net_log, |
| 182 AddressList* addresses) const; | 182 AddressList* addresses) const; |
| 183 | 183 |
| 184 // Add |address| as an IP-equivalent address for |pair|. | 184 // Add |address| as an IP-equivalent address for |pair|. |
| 185 void AddAlias(const addrinfo* address, const HostPortProxyPair& pair); | 185 void AddAlias(const IPEndPoint& address, const HostPortProxyPair& pair); |
| 186 | 186 |
| 187 // Remove all aliases for |pair| from the aliases table. | 187 // Remove all aliases for |pair| from the aliases table. |
| 188 void RemoveAliases(const HostPortProxyPair& pair); | 188 void RemoveAliases(const HostPortProxyPair& pair); |
| 189 | 189 |
| 190 // Removes |session| from the session list associated with |pair|. | 190 // Removes |session| from the session list associated with |pair|. |
| 191 // Returns true if the session was removed, false otherwise. | 191 // Returns true if the session was removed, false otherwise. |
| 192 bool RemoveFromSessionList(const scoped_refptr<SpdySession>& session, | 192 bool RemoveFromSessionList(const scoped_refptr<SpdySession>& session, |
| 193 const HostPortProxyPair& pair); | 193 const HostPortProxyPair& pair); |
| 194 | 194 |
| 195 HttpServerProperties* const http_server_properties_; | 195 HttpServerProperties* const http_server_properties_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 212 // This SPDY proxy is allowed to push resources from origins that are | 212 // This SPDY proxy is allowed to push resources from origins that are |
| 213 // different from those of their associated streams. | 213 // different from those of their associated streams. |
| 214 HostPortPair trusted_spdy_proxy_; | 214 HostPortPair trusted_spdy_proxy_; |
| 215 | 215 |
| 216 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); | 216 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 } // namespace net | 219 } // namespace net |
| 220 | 220 |
| 221 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ | 221 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ |
| OLD | NEW |