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

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

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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/spdy/spdy_stream.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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 base::Value* SpdySessionPoolInfoToValue() const; 103 base::Value* SpdySessionPoolInfoToValue() const;
104 104
105 SpdySettingsStorage* mutable_spdy_settings() { return &spdy_settings_; } 105 SpdySettingsStorage* mutable_spdy_settings() { return &spdy_settings_; }
106 const SpdySettingsStorage& spdy_settings() const { return spdy_settings_; } 106 const SpdySettingsStorage& spdy_settings() const { return spdy_settings_; }
107 107
108 // NetworkChangeNotifier::IPAddressObserver methods: 108 // NetworkChangeNotifier::IPAddressObserver methods:
109 109
110 // We flush all idle sessions and release references to the active ones so 110 // We flush all idle sessions and release references to the active ones so
111 // they won't get re-used. The active ones will either complete successfully 111 // they won't get re-used. The active ones will either complete successfully
112 // or error out due to the IP address change. 112 // or error out due to the IP address change.
113 virtual void OnIPAddressChanged(); 113 virtual void OnIPAddressChanged() OVERRIDE;
114 114
115 // SSLConfigService::Observer methods: 115 // SSLConfigService::Observer methods:
116 116
117 // We perform the same flushing as described above when SSL settings change. 117 // We perform the same flushing as described above when SSL settings change.
118 virtual void OnSSLConfigChanged(); 118 virtual void OnSSLConfigChanged() OVERRIDE;
119 119
120 // A debugging mode where we compress all accesses through a single domain. 120 // A debugging mode where we compress all accesses through a single domain.
121 static void ForceSingleDomain() { g_force_single_domain = true; } 121 static void ForceSingleDomain() { g_force_single_domain = true; }
122 122
123 // Controls whether the pool allows use of a common session for domains 123 // Controls whether the pool allows use of a common session for domains
124 // which share IP address resolutions. 124 // which share IP address resolutions.
125 static void enable_ip_pooling(bool value) { g_enable_ip_pooling = value; } 125 static void enable_ip_pooling(bool value) { g_enable_ip_pooling = value; }
126 126
127 // CertDatabase::Observer methods: 127 // CertDatabase::Observer methods:
128 virtual void OnUserCertAdded(const X509Certificate* cert); 128 virtual void OnUserCertAdded(const X509Certificate* cert) OVERRIDE;
129 virtual void OnCertTrustChanged(const X509Certificate* cert); 129 virtual void OnCertTrustChanged(const X509Certificate* cert) OVERRIDE;
130 130
131 private: 131 private:
132 friend class SpdySessionPoolPeer; // For testing. 132 friend class SpdySessionPoolPeer; // For testing.
133 friend class SpdyNetworkTransactionTest; // For testing. 133 friend class SpdyNetworkTransactionTest; // For testing.
134 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow); 134 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow);
135 135
136 typedef std::list<scoped_refptr<SpdySession> > SpdySessionList; 136 typedef std::list<scoped_refptr<SpdySession> > SpdySessionList;
137 typedef std::map<HostPortProxyPair, SpdySessionList*> SpdySessionsMap; 137 typedef std::map<HostPortProxyPair, SpdySessionList*> SpdySessionsMap;
138 typedef std::map<IPEndPoint, HostPortProxyPair> SpdyAliasMap; 138 typedef std::map<IPEndPoint, HostPortProxyPair> SpdyAliasMap;
139 139
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests. 187 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests.
188 bool verify_domain_authentication_; 188 bool verify_domain_authentication_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); 190 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool);
191 }; 191 };
192 192
193 } // namespace net 193 } // namespace net
194 194
195 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ 195 #endif // NET_SPDY_SPDY_SESSION_POOL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.h ('k') | net/spdy/spdy_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698