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

Side by Side Diff: net/quic/chromium/quic_stream_factory_peer.h

Issue 2821053004: Revert of Remove the code to store and load QUIC server configs in the disk cache. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | net/quic/chromium/quic_stream_factory_peer.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_ 5 #ifndef NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_
6 #define NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_ 6 #define NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 static void SetYieldAfterPackets(QuicStreamFactory* factory, 73 static void SetYieldAfterPackets(QuicStreamFactory* factory,
74 int yield_after_packets); 74 int yield_after_packets);
75 75
76 static void SetYieldAfterDuration(QuicStreamFactory* factory, 76 static void SetYieldAfterDuration(QuicStreamFactory* factory,
77 QuicTime::Delta yield_after_duration); 77 QuicTime::Delta yield_after_duration);
78 78
79 static size_t GetNumberOfActiveJobs(QuicStreamFactory* factory, 79 static size_t GetNumberOfActiveJobs(QuicStreamFactory* factory,
80 const QuicServerId& server_id); 80 const QuicServerId& server_id);
81 81
82 static void MaybeInitialize(QuicStreamFactory* factory);
83
84 static bool HasInitializedData(QuicStreamFactory* factory);
85
86 static bool SupportsQuicAtStartUp(QuicStreamFactory* factory,
87 HostPortPair host_port_pair);
88
82 static bool CryptoConfigCacheIsEmpty(QuicStreamFactory* factory, 89 static bool CryptoConfigCacheIsEmpty(QuicStreamFactory* factory,
83 const QuicServerId& quic_server_id); 90 const QuicServerId& quic_server_id);
84 91
85 // Creates a dummy QUIC server config and caches it. 92 // Creates a dummy QUIC server config and caches it.
86 static void CacheDummyServerConfig(QuicStreamFactory* factory, 93 static void CacheDummyServerConfig(QuicStreamFactory* factory,
87 const QuicServerId& quic_server_id); 94 const QuicServerId& quic_server_id);
88 95
89 static QuicClientPushPromiseIndex* GetPushPromiseIndex( 96 static QuicClientPushPromiseIndex* GetPushPromiseIndex(
90 QuicStreamFactory* factory); 97 QuicStreamFactory* factory);
91 98
92 static int GetNumPushStreamsCreated(QuicStreamFactory* factory); 99 static int GetNumPushStreamsCreated(QuicStreamFactory* factory);
93 100
94 static void SetAlarmFactory(QuicStreamFactory* factory, 101 static void SetAlarmFactory(QuicStreamFactory* factory,
95 std::unique_ptr<QuicAlarmFactory> alarm_factory); 102 std::unique_ptr<QuicAlarmFactory> alarm_factory);
96 103
97 private: 104 private:
98 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); 105 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer);
99 }; 106 };
100 107
101 } // namespace test 108 } // namespace test
102 } // namespace net 109 } // namespace net
103 110
104 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_ 111 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | net/quic/chromium/quic_stream_factory_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698