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

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

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Introduced IOThread::UpdateNetworkSessionParams Created 3 years, 12 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_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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // |request|. 278 // |request|.
279 void GetSSLConfig(const HttpRequestInfo& request, 279 void GetSSLConfig(const HttpRequestInfo& request,
280 SSLConfig* server_config, 280 SSLConfig* server_config,
281 SSLConfig* proxy_config) const; 281 SSLConfig* proxy_config) const;
282 282
283 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name 283 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name
284 // used by the parent MemoryAllocatorDump in the memory dump hierarchy. 284 // used by the parent MemoryAllocatorDump in the memory dump hierarchy.
285 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd, 285 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
286 const std::string& parent_absolute_name) const; 286 const std::string& parent_absolute_name) const;
287 287
288 // Evaluates if QUIC is enabled for new streams.
289 bool IsQuicEnabled() const;
290
291 // Sets QUIC enablement for new streams.
292 void SetQuicEnabled(bool quic_enabled);
293
288 private: 294 private:
289 friend class HttpNetworkSessionPeer; 295 friend class HttpNetworkSessionPeer;
290 296
291 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); 297 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type);
292 298
293 // Flush sockets on low memory notifications callback. 299 // Flush sockets on low memory notifications callback.
294 void OnMemoryPressure( 300 void OnMemoryPressure(
295 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 301 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
296 302
297 // base::MemoryCoordinatorClient implementation: 303 // base::MemoryCoordinatorClient implementation:
(...skipping 24 matching lines...) Expand all
322 NextProtoVector next_protos_; 328 NextProtoVector next_protos_;
323 329
324 Params params_; 330 Params params_;
325 331
326 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 332 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
327 }; 333 };
328 334
329 } // namespace net 335 } // namespace net
330 336
331 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 337 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698