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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Remove all aliases for |key| from the aliases table. 177 // Remove all aliases for |key| from the aliases table.
178 void RemoveAliases(const SpdySessionKey& key); 178 void RemoveAliases(const SpdySessionKey& key);
179 179
180 // Get a copy of the current sessions as a list of WeakPtrs. Used by 180 // Get a copy of the current sessions as a list of WeakPtrs. Used by
181 // CloseCurrentSessionsHelper() below. 181 // CloseCurrentSessionsHelper() below.
182 WeakSessionList GetCurrentSessions() const; 182 WeakSessionList GetCurrentSessions() const;
183 183
184 // Close only the currently existing SpdySessions with |error|. Let 184 // Close only the currently existing SpdySessions with |error|. Let
185 // any new ones created while this method is running continue to 185 // any new ones created while this method is running continue to
186 // live. If |idle_only| is true only idle sessions are closed. 186 // live. If |idle_only| is true only idle sessions are closed.
187 void CloseCurrentSessionsHelper( 187 void CloseCurrentSessionsHelper(Error error,
188 Error error, 188 const std::string& description,
189 const std::string& description, 189 bool idle_only);
190 bool idle_only);
191 190
192 const base::WeakPtr<HttpServerProperties> http_server_properties_; 191 const base::WeakPtr<HttpServerProperties> http_server_properties_;
193 192
194 // The set of all sessions. This is a superset of the sessions in 193 // The set of all sessions. This is a superset of the sessions in
195 // |available_sessions_|. 194 // |available_sessions_|.
196 // 195 //
197 // |sessions_| owns all its SpdySession objects. 196 // |sessions_| owns all its SpdySession objects.
198 SessionSet sessions_; 197 SessionSet sessions_;
199 198
200 // This is a map of available sessions by key. A session may appear 199 // This is a map of available sessions by key. A session may appear
(...skipping 23 matching lines...) Expand all
224 // This SPDY proxy is allowed to push resources from origins that are 223 // This SPDY proxy is allowed to push resources from origins that are
225 // different from those of their associated streams. 224 // different from those of their associated streams.
226 HostPortPair trusted_spdy_proxy_; 225 HostPortPair trusted_spdy_proxy_;
227 226
228 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); 227 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool);
229 }; 228 };
230 229
231 } // namespace net 230 } // namespace net
232 231
233 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ 232 #endif // NET_SPDY_SPDY_SESSION_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698