| 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 | |
| 89 static bool CryptoConfigCacheIsEmpty(QuicStreamFactory* factory, | 82 static bool CryptoConfigCacheIsEmpty(QuicStreamFactory* factory, |
| 90 const QuicServerId& quic_server_id); | 83 const QuicServerId& quic_server_id); |
| 91 | 84 |
| 92 // Creates a dummy QUIC server config and caches it. | 85 // Creates a dummy QUIC server config and caches it. |
| 93 static void CacheDummyServerConfig(QuicStreamFactory* factory, | 86 static void CacheDummyServerConfig(QuicStreamFactory* factory, |
| 94 const QuicServerId& quic_server_id); | 87 const QuicServerId& quic_server_id); |
| 95 | 88 |
| 96 static QuicClientPushPromiseIndex* GetPushPromiseIndex( | 89 static QuicClientPushPromiseIndex* GetPushPromiseIndex( |
| 97 QuicStreamFactory* factory); | 90 QuicStreamFactory* factory); |
| 98 | 91 |
| 99 static int GetNumPushStreamsCreated(QuicStreamFactory* factory); | 92 static int GetNumPushStreamsCreated(QuicStreamFactory* factory); |
| 100 | 93 |
| 101 static void SetAlarmFactory(QuicStreamFactory* factory, | 94 static void SetAlarmFactory(QuicStreamFactory* factory, |
| 102 std::unique_ptr<QuicAlarmFactory> alarm_factory); | 95 std::unique_ptr<QuicAlarmFactory> alarm_factory); |
| 103 | 96 |
| 104 private: | 97 private: |
| 105 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); | 98 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); |
| 106 }; | 99 }; |
| 107 | 100 |
| 108 } // namespace test | 101 } // namespace test |
| 109 } // namespace net | 102 } // namespace net |
| 110 | 103 |
| 111 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_ | 104 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_ |
| OLD | NEW |