OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |