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

Side by Side Diff: net/quic/quic_stream_factory.h

Issue 255783002: QUIC - Minor clean up of QUIC Server Info memory cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed wtc's comments in Patch Set 2 Created 6 years, 8 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/quic/crypto/quic_crypto_client_config_test.cc ('k') | net/quic/quic_stream_factory.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_QUIC_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Cancels a pending request. 127 // Cancels a pending request.
128 void CancelRequest(QuicStreamRequest* request); 128 void CancelRequest(QuicStreamRequest* request);
129 129
130 // Closes all current sessions. 130 // Closes all current sessions.
131 void CloseAllSessions(int error); 131 void CloseAllSessions(int error);
132 132
133 base::Value* QuicStreamFactoryInfoToValue() const; 133 base::Value* QuicStreamFactoryInfoToValue() const;
134 134
135 // Delete all cached state objects in |crypto_config_|. 135 // Delete all cached state objects in |crypto_config_|.
136 void ClearCachedStates(); 136 void ClearCachedStatesInCryptoConfig();
137 137
138 // NetworkChangeNotifier::IPAddressObserver methods: 138 // NetworkChangeNotifier::IPAddressObserver methods:
139 139
140 // Until the servers support roaming, close all connections when the local 140 // Until the servers support roaming, close all connections when the local
141 // IP address changes. 141 // IP address changes.
142 virtual void OnIPAddressChanged() OVERRIDE; 142 virtual void OnIPAddressChanged() OVERRIDE;
143 143
144 // CertDatabase::Observer methods: 144 // CertDatabase::Observer methods:
145 145
146 // We close all sessions when certificate database is changed. 146 // We close all sessions when certificate database is changed.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 int CreateSession(const QuicServerId& server_id, 208 int CreateSession(const QuicServerId& server_id,
209 scoped_ptr<QuicServerInfo> quic_server_info, 209 scoped_ptr<QuicServerInfo> quic_server_info,
210 const AddressList& address_list, 210 const AddressList& address_list,
211 const BoundNetLog& net_log, 211 const BoundNetLog& net_log,
212 QuicClientSession** session); 212 QuicClientSession** session);
213 void ActivateSession(const QuicServerId& key, 213 void ActivateSession(const QuicServerId& key,
214 QuicClientSession* session); 214 QuicClientSession* session);
215 215
216 // Initializes the cached state associated with |server_id| in 216 // Initializes the cached state associated with |server_id| in
217 // |crypto_config_| with the information in |server_info|. 217 // |crypto_config_| with the information in |server_info|.
218 void InitializeCachedState(const QuicServerId& server_id, 218 void InitializeCachedStateInCryptoConfig(
219 const scoped_ptr<QuicServerInfo>& server_info); 219 const QuicServerId& server_id,
220 const scoped_ptr<QuicServerInfo>& server_info);
220 221
221 bool require_confirmation_; 222 bool require_confirmation_;
222 HostResolver* host_resolver_; 223 HostResolver* host_resolver_;
223 ClientSocketFactory* client_socket_factory_; 224 ClientSocketFactory* client_socket_factory_;
224 base::WeakPtr<HttpServerProperties> http_server_properties_; 225 base::WeakPtr<HttpServerProperties> http_server_properties_;
225 CertVerifier* cert_verifier_; 226 CertVerifier* cert_verifier_;
226 QuicServerInfoFactory* quic_server_info_factory_; 227 QuicServerInfoFactory* quic_server_info_factory_;
227 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; 228 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_;
228 QuicRandom* random_generator_; 229 QuicRandom* random_generator_;
229 scoped_ptr<QuicClock> clock_; 230 scoped_ptr<QuicClock> clock_;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 uint64 port_seed_; 272 uint64 port_seed_;
272 273
273 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 274 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
274 275
275 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 276 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
276 }; 277 };
277 278
278 } // namespace net 279 } // namespace net
279 280
280 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 281 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_client_config_test.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698