Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: net/spdy/spdy_session_pool.h

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get_canonical_name -> canonical_name. iterator to indexing Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_http_stream.cc ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream.cc ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698