| 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 // A client specific QuicSession subclass. This class owns the underlying | 5 // A client specific QuicSession subclass. This class owns the underlying |
| 6 // QuicConnection and QuicConnectionHelper objects. The connection stores | 6 // QuicConnection and QuicConnectionHelper objects. The connection stores |
| 7 // a non-owning pointer to the helper so this session needs to ensure that | 7 // a non-owning pointer to the helper so this session needs to ensure that |
| 8 // the helper outlives the connection. | 8 // the helper outlives the connection. |
| 9 | 9 |
| 10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 const QuicConfig& config, | 129 const QuicConfig& config, |
| 130 QuicCryptoClientConfig* crypto_config, | 130 QuicCryptoClientConfig* crypto_config, |
| 131 const char* const connection_description, | 131 const char* const connection_description, |
| 132 base::TimeTicks dns_resolution_end_time, | 132 base::TimeTicks dns_resolution_end_time, |
| 133 QuicClientPushPromiseIndex* push_promise_index, | 133 QuicClientPushPromiseIndex* push_promise_index, |
| 134 base::TaskRunner* task_runner, | 134 base::TaskRunner* task_runner, |
| 135 std::unique_ptr<SocketPerformanceWatcher> socket_performance_watcher, | 135 std::unique_ptr<SocketPerformanceWatcher> socket_performance_watcher, |
| 136 NetLog* net_log); | 136 NetLog* net_log); |
| 137 ~QuicChromiumClientSession() override; | 137 ~QuicChromiumClientSession() override; |
| 138 | 138 |
| 139 void Initialize() override; |
| 140 |
| 139 void AddObserver(Observer* observer); | 141 void AddObserver(Observer* observer); |
| 140 void RemoveObserver(Observer* observer); | 142 void RemoveObserver(Observer* observer); |
| 141 | 143 |
| 142 // Attempts to create a new stream. If the stream can be | 144 // Attempts to create a new stream. If the stream can be |
| 143 // created immediately, returns OK. If the open stream limit | 145 // created immediately, returns OK. If the open stream limit |
| 144 // has been reached, returns ERR_IO_PENDING, and |request| | 146 // has been reached, returns ERR_IO_PENDING, and |request| |
| 145 // will be added to the stream requets queue and will | 147 // will be added to the stream requets queue and will |
| 146 // be completed asynchronously. | 148 // be completed asynchronously. |
| 147 // TODO(rch): remove |stream| from this and use setter on |request| | 149 // TODO(rch): remove |stream| from this and use setter on |request| |
| 148 // and fix in spdy too. | 150 // and fix in spdy too. |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 int streams_pushed_count_; | 351 int streams_pushed_count_; |
| 350 int streams_pushed_and_claimed_count_; | 352 int streams_pushed_and_claimed_count_; |
| 351 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 353 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
| 352 | 354 |
| 353 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 355 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
| 354 }; | 356 }; |
| 355 | 357 |
| 356 } // namespace net | 358 } // namespace net |
| 357 | 359 |
| 358 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 360 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| OLD | NEW |