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

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

Issue 1018943002: Update HttpServerProperties::*AlternateProtocol* interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 QuicClientSession** session); 241 QuicClientSession** session);
242 void ActivateSession(const QuicServerId& key, 242 void ActivateSession(const QuicServerId& key,
243 QuicClientSession* session); 243 QuicClientSession* session);
244 244
245 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there 245 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there
246 // is no |http_server_properties_| or if |http_server_properties_| doesn't 246 // is no |http_server_properties_| or if |http_server_properties_| doesn't
247 // have ServerNetworkStats for the given |server_id|. 247 // have ServerNetworkStats for the given |server_id|.
248 int64 GetServerNetworkStatsSmoothedRttInMicroseconds( 248 int64 GetServerNetworkStatsSmoothedRttInMicroseconds(
249 const QuicServerId& server_id) const; 249 const QuicServerId& server_id) const;
250 250
251 // Helped methods. 251 // Helped methods.
Ryan Hamilton 2015/03/18 22:55:43 hah! s/Helped/Helper/ as long as you're here.
Bence 2015/03/19 12:45:39 Done.
252 bool WasAlternateProtocolRecentlyBroken(const QuicServerId& server_id) const; 252 bool WasAlternativeServiceRecentlyBroken(const QuicServerId& server_id) const;
Ryan Hamilton 2015/03/18 22:55:43 Can you rename this to be WasQuicRecentlyBroken?
Bence 2015/03/19 12:45:39 Done.
253 bool CryptoConfigCacheIsEmpty(const QuicServerId& server_id); 253 bool CryptoConfigCacheIsEmpty(const QuicServerId& server_id);
254 254
255 // Initializes the cached state associated with |server_id| in 255 // Initializes the cached state associated with |server_id| in
256 // |crypto_config_| with the information in |server_info|. 256 // |crypto_config_| with the information in |server_info|.
257 void InitializeCachedStateInCryptoConfig( 257 void InitializeCachedStateInCryptoConfig(
258 const QuicServerId& server_id, 258 const QuicServerId& server_id,
259 const scoped_ptr<QuicServerInfo>& server_info); 259 const scoped_ptr<QuicServerInfo>& server_info);
260 260
261 void ProcessGoingAwaySession(QuicClientSession* session, 261 void ProcessGoingAwaySession(QuicClientSession* session,
262 const QuicServerId& server_id, 262 const QuicServerId& server_id,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 base::TaskRunner* task_runner_; 348 base::TaskRunner* task_runner_;
349 349
350 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 350 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
351 351
352 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 352 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
353 }; 353 };
354 354
355 } // namespace net 355 } // namespace net
356 356
357 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 357 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698