| 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_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 class QuicStreamFactoryPeer { | 31 class QuicStreamFactoryPeer { |
| 32 public: | 32 public: |
| 33 static const QuicConfig* GetConfig(QuicStreamFactory* factory); | 33 static const QuicConfig* GetConfig(QuicStreamFactory* factory); |
| 34 | 34 |
| 35 static QuicCryptoClientConfig* GetCryptoConfig(QuicStreamFactory* factory); | 35 static QuicCryptoClientConfig* GetCryptoConfig(QuicStreamFactory* factory); |
| 36 | 36 |
| 37 static bool HasActiveSession(QuicStreamFactory* factory, | 37 static bool HasActiveSession(QuicStreamFactory* factory, |
| 38 const QuicServerId& server_id); | 38 const QuicServerId& server_id); |
| 39 | 39 |
| 40 static bool HasActiveJob(QuicStreamFactory* factory, |
| 41 const QuicServerId& server_id); |
| 42 |
| 40 static bool HasActiveCertVerifierJob(QuicStreamFactory* factory, | 43 static bool HasActiveCertVerifierJob(QuicStreamFactory* factory, |
| 41 const QuicServerId& server_id); | 44 const QuicServerId& server_id); |
| 42 | 45 |
| 43 static QuicChromiumClientSession* GetActiveSession( | 46 static QuicChromiumClientSession* GetActiveSession( |
| 44 QuicStreamFactory* factory, | 47 QuicStreamFactory* factory, |
| 45 const QuicServerId& server_id); | 48 const QuicServerId& server_id); |
| 46 | 49 |
| 47 static std::unique_ptr<QuicHttpStream> CreateFromSession( | 50 static std::unique_ptr<QuicHttpStream> CreateFromSession( |
| 48 QuicStreamFactory* factory, | 51 QuicStreamFactory* factory, |
| 49 QuicChromiumClientSession* session); | 52 QuicChromiumClientSession* session); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 static int GetNumPushStreamsCreated(QuicStreamFactory* factory); | 104 static int GetNumPushStreamsCreated(QuicStreamFactory* factory); |
| 102 | 105 |
| 103 private: | 106 private: |
| 104 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); | 107 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 } // namespace test | 110 } // namespace test |
| 108 } // namespace net | 111 } // namespace net |
| 109 | 112 |
| 110 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ | 113 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ |
| OLD | NEW |