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

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

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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_session.h ('k') | net/test/test_server.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Close only the currently existing SpdySessions. Let any new ones created 92 // Close only the currently existing SpdySessions. Let any new ones created
93 // continue to live. 93 // continue to live.
94 void CloseCurrentSessions(); 94 void CloseCurrentSessions();
95 95
96 // Removes a SpdySession from the SpdySessionPool. This should only be called 96 // Removes a SpdySession from the SpdySessionPool. This should only be called
97 // by SpdySession, because otherwise session->state_ is not set to CLOSED. 97 // by SpdySession, because otherwise session->state_ is not set to CLOSED.
98 void Remove(const scoped_refptr<SpdySession>& session); 98 void Remove(const scoped_refptr<SpdySession>& session);
99 99
100 // Creates a Value summary of the state of the spdy session pool. The caller 100 // Creates a Value summary of the state of the spdy session pool. The caller
101 // responsible for deleting the returned value. 101 // responsible for deleting the returned value.
102 Value* SpdySessionPoolInfoToValue() const; 102 base::Value* SpdySessionPoolInfoToValue() const;
103 103
104 SpdySettingsStorage* mutable_spdy_settings() { return &spdy_settings_; } 104 SpdySettingsStorage* mutable_spdy_settings() { return &spdy_settings_; }
105 const SpdySettingsStorage& spdy_settings() const { return spdy_settings_; } 105 const SpdySettingsStorage& spdy_settings() const { return spdy_settings_; }
106 106
107 // NetworkChangeNotifier::IPAddressObserver methods: 107 // NetworkChangeNotifier::IPAddressObserver methods:
108 108
109 // We flush all idle sessions and release references to the active ones so 109 // We flush all idle sessions and release references to the active ones so
110 // they won't get re-used. The active ones will either complete successfully 110 // they won't get re-used. The active ones will either complete successfully
111 // or error out due to the IP address change. 111 // or error out due to the IP address change.
112 virtual void OnIPAddressChanged(); 112 virtual void OnIPAddressChanged();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests. 186 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests.
187 bool verify_domain_authentication_; 187 bool verify_domain_authentication_;
188 188
189 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); 189 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool);
190 }; 190 };
191 191
192 } // namespace net 192 } // namespace net
193 193
194 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ 194 #endif // NET_SPDY_SPDY_SESSION_POOL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.h ('k') | net/test/test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698