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

Side by Side Diff: net/http/http_network_session.h

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Revert accidental format Created 3 years, 11 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
« no previous file with comments | « google_apis/gcm/engine/connection_factory_impl.cc ('k') | net/http/http_network_session.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_HTTP_HTTP_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // |request|. 291 // |request|.
292 void GetSSLConfig(const HttpRequestInfo& request, 292 void GetSSLConfig(const HttpRequestInfo& request,
293 SSLConfig* server_config, 293 SSLConfig* server_config,
294 SSLConfig* proxy_config) const; 294 SSLConfig* proxy_config) const;
295 295
296 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name 296 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name
297 // used by the parent MemoryAllocatorDump in the memory dump hierarchy. 297 // used by the parent MemoryAllocatorDump in the memory dump hierarchy.
298 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd, 298 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
299 const std::string& parent_absolute_name) const; 299 const std::string& parent_absolute_name) const;
300 300
301 // Evaluates if QUIC is enabled for new streams.
302 bool IsQuicEnabled() const;
303
304 // Disable QUIC for new streams.
305 void DisableQuic();
306
301 private: 307 private:
302 friend class HttpNetworkSessionPeer; 308 friend class HttpNetworkSessionPeer;
303 309
304 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); 310 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type);
305 311
306 // Flush sockets on low memory notifications callback. 312 // Flush sockets on low memory notifications callback.
307 void OnMemoryPressure( 313 void OnMemoryPressure(
308 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 314 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
309 315
310 // base::MemoryCoordinatorClient implementation: 316 // base::MemoryCoordinatorClient implementation:
(...skipping 24 matching lines...) Expand all
335 NextProtoVector next_protos_; 341 NextProtoVector next_protos_;
336 342
337 Params params_; 343 Params params_;
338 344
339 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 345 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
340 }; 346 };
341 347
342 } // namespace net 348 } // namespace net
343 349
344 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 350 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/connection_factory_impl.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698