| 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 | 
| 11 #include "base/macros.h" | 11 #include "base/macros.h" | 
| 12 #include "base/task_runner.h" | 12 #include "base/task_runner.h" | 
| 13 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" | 
| 14 #include "net/base/privacy_mode.h" | 14 #include "net/base/privacy_mode.h" | 
| 15 #include "net/quic/core/quic_packets.h" | 15 #include "net/quic/core/quic_packets.h" | 
| 16 #include "net/quic/core/quic_server_id.h" | 16 #include "net/quic/core/quic_server_id.h" | 
| 17 #include "net/quic/core/quic_time.h" | 17 #include "net/quic/core/quic_time.h" | 
| 18 | 18 | 
| 19 namespace net { | 19 namespace net { | 
| 20 | 20 | 
| 21 class NetLogWithSource; | 21 class NetLogWithSource; | 
| 22 class QuicAlarmFactory; | 22 class QuicAlarmFactory; | 
| 23 class QuicChromiumClientSession; | 23 class QuicChromiumClientSession; | 
| 24 class QuicClientPushPromiseIndex; | 24 class QuicClientPushPromiseIndex; | 
| 25 class QuicConfig; | 25 class QuicConfig; | 
| 26 class QuicCryptoClientConfig; | 26 class QuicCryptoClientConfig; | 
| 27 class QuicStreamFactory; | 27 class QuicStreamFactory; | 
|  | 28 class QuicStreamRequestFactory; | 
| 28 | 29 | 
| 29 namespace test { | 30 namespace test { | 
| 30 | 31 | 
| 31 class QuicStreamFactoryPeer { | 32 class QuicStreamFactoryPeer { | 
| 32  public: | 33  public: | 
| 33   static const QuicConfig* GetConfig(QuicStreamFactory* factory); | 34   static const QuicConfig* GetConfig(QuicStreamFactory* factory); | 
| 34 | 35 | 
| 35   static QuicCryptoClientConfig* GetCryptoConfig(QuicStreamFactory* factory); | 36   static QuicCryptoClientConfig* GetCryptoConfig(QuicStreamFactory* factory); | 
| 36 | 37 | 
| 37   static bool HasActiveSession(QuicStreamFactory* factory, | 38   static bool HasActiveSession(QuicStreamFactory* factory, | 
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 82                                      const QuicServerId& quic_server_id); | 83                                      const QuicServerId& quic_server_id); | 
| 83 | 84 | 
| 84   static QuicClientPushPromiseIndex* GetPushPromiseIndex( | 85   static QuicClientPushPromiseIndex* GetPushPromiseIndex( | 
| 85       QuicStreamFactory* factory); | 86       QuicStreamFactory* factory); | 
| 86 | 87 | 
| 87   static int GetNumPushStreamsCreated(QuicStreamFactory* factory); | 88   static int GetNumPushStreamsCreated(QuicStreamFactory* factory); | 
| 88 | 89 | 
| 89   static void SetAlarmFactory(QuicStreamFactory* factory, | 90   static void SetAlarmFactory(QuicStreamFactory* factory, | 
| 90                               std::unique_ptr<QuicAlarmFactory> alarm_factory); | 91                               std::unique_ptr<QuicAlarmFactory> alarm_factory); | 
| 91 | 92 | 
|  | 93   static void SetStreamRequestFactory( | 
|  | 94       QuicStreamFactory* factory, | 
|  | 95       std::unique_ptr<QuicStreamRequestFactory> stream_request_factory); | 
|  | 96 | 
| 92  private: | 97  private: | 
| 93   DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); | 98   DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); | 
| 94 }; | 99 }; | 
| 95 | 100 | 
| 96 }  // namespace test | 101 }  // namespace test | 
| 97 }  // namespace net | 102 }  // namespace net | 
| 98 | 103 | 
| 99 #endif  // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_ | 104 #endif  // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_PEER_H_ | 
| OLD | NEW | 
|---|