| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_QUIC_STREAM_FACTORY_H_ | 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ | 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class QuicChromiumClientSession; | 49 class QuicChromiumClientSession; |
| 50 class QuicChromiumConnectionHelper; | 50 class QuicChromiumConnectionHelper; |
| 51 class QuicCryptoClientStreamFactory; | 51 class QuicCryptoClientStreamFactory; |
| 52 class QuicRandom; | 52 class QuicRandom; |
| 53 class QuicServerId; | 53 class QuicServerId; |
| 54 class QuicServerInfo; | 54 class QuicServerInfo; |
| 55 class QuicServerInfoFactory; | 55 class QuicServerInfoFactory; |
| 56 class QuicStreamFactory; | 56 class QuicStreamFactory; |
| 57 class SocketPerformanceWatcherFactory; | 57 class SocketPerformanceWatcherFactory; |
| 58 class TransportSecurityState; | 58 class TransportSecurityState; |
| 59 class BidirectionalStreamJob; | 59 class BidirectionalStreamImpl; |
| 60 | 60 |
| 61 namespace test { | 61 namespace test { |
| 62 class QuicStreamFactoryPeer; | 62 class QuicStreamFactoryPeer; |
| 63 } // namespace test | 63 } // namespace test |
| 64 | 64 |
| 65 // When a connection is idle for 30 seconds it will be closed. | 65 // When a connection is idle for 30 seconds it will be closed. |
| 66 const int kIdleConnectionTimeoutSeconds = 30; | 66 const int kIdleConnectionTimeoutSeconds = 30; |
| 67 | 67 |
| 68 // Encapsulates a pending request for a QuicHttpStream. | 68 // Encapsulates a pending request for a QuicHttpStream. |
| 69 // If the request is still pending when it is destroyed, it will | 69 // If the request is still pending when it is destroyed, it will |
| (...skipping 14 matching lines...) Expand all Loading... |
| 84 const CompletionCallback& callback); | 84 const CompletionCallback& callback); |
| 85 | 85 |
| 86 void OnRequestComplete(int rv); | 86 void OnRequestComplete(int rv); |
| 87 | 87 |
| 88 // Helper method that calls |factory_|'s GetTimeDelayForWaitingJob(). It | 88 // Helper method that calls |factory_|'s GetTimeDelayForWaitingJob(). It |
| 89 // returns the amount of time waiting job should be delayed. | 89 // returns the amount of time waiting job should be delayed. |
| 90 base::TimeDelta GetTimeDelayForWaitingJob() const; | 90 base::TimeDelta GetTimeDelayForWaitingJob() const; |
| 91 | 91 |
| 92 scoped_ptr<QuicHttpStream> CreateStream(); | 92 scoped_ptr<QuicHttpStream> CreateStream(); |
| 93 | 93 |
| 94 scoped_ptr<BidirectionalStreamJob> CreateBidirectionalStreamJob(); | 94 scoped_ptr<BidirectionalStreamImpl> CreateBidirectionalStreamImpl(); |
| 95 | 95 |
| 96 // Sets |session_|. | 96 // Sets |session_|. |
| 97 void SetSession(QuicChromiumClientSession* session); | 97 void SetSession(QuicChromiumClientSession* session); |
| 98 | 98 |
| 99 const std::string& origin_host() const { return origin_host_; } | 99 const std::string& origin_host() const { return origin_host_; } |
| 100 | 100 |
| 101 PrivacyMode privacy_mode() const { return privacy_mode_; } | 101 PrivacyMode privacy_mode() const { return privacy_mode_; } |
| 102 | 102 |
| 103 const BoundNetLog& net_log() const { return net_log_; } | 103 const BoundNetLog& net_log() const { return net_log_; } |
| 104 | 104 |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 base::TaskRunner* task_runner_; | 556 base::TaskRunner* task_runner_; |
| 557 | 557 |
| 558 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 558 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 559 | 559 |
| 560 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 560 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 561 }; | 561 }; |
| 562 | 562 |
| 563 } // namespace net | 563 } // namespace net |
| 564 | 564 |
| 565 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 565 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |