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_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 const char* const connection_description, | 157 const char* const connection_description, |
158 base::TimeTicks dns_resolution_start_time, | 158 base::TimeTicks dns_resolution_start_time, |
159 base::TimeTicks dns_resolution_end_time, | 159 base::TimeTicks dns_resolution_end_time, |
160 QuicClientPushPromiseIndex* push_promise_index, | 160 QuicClientPushPromiseIndex* push_promise_index, |
161 ServerPushDelegate* push_delegate, | 161 ServerPushDelegate* push_delegate, |
162 base::TaskRunner* task_runner, | 162 base::TaskRunner* task_runner, |
163 std::unique_ptr<SocketPerformanceWatcher> socket_performance_watcher, | 163 std::unique_ptr<SocketPerformanceWatcher> socket_performance_watcher, |
164 NetLog* net_log); | 164 NetLog* net_log); |
165 ~QuicChromiumClientSession() override; | 165 ~QuicChromiumClientSession() override; |
166 | 166 |
167 std::unique_ptr<QuicStream> CreateStream(QuicStreamId id) override; | |
168 | |
169 void Initialize() override; | 167 void Initialize() override; |
170 | 168 |
171 void AddObserver(Observer* observer); | 169 void AddObserver(Observer* observer); |
172 void RemoveObserver(Observer* observer); | 170 void RemoveObserver(Observer* observer); |
173 | 171 |
174 // Waits for the handshake to be confirmed and invokes |callback| when | 172 // Waits for the handshake to be confirmed and invokes |callback| when |
175 // that happens. If the handshake has already been confirmed, returns OK. | 173 // that happens. If the handshake has already been confirmed, returns OK. |
176 // If the connection has already been closed, returns a net error. If the | 174 // If the connection has already been closed, returns a net error. If the |
177 // connection closes before the handshake is confirmed, |callback| will | 175 // connection closes before the handshake is confirmed, |callback| will |
178 // be invoked with an error. | 176 // be invoked with an error. |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 // the current sockets_.size() == the passed in value. | 431 // the current sockets_.size() == the passed in value. |
434 bool migration_pending_; // True while migration is underway. | 432 bool migration_pending_; // True while migration is underway. |
435 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 433 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
436 | 434 |
437 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 435 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
438 }; | 436 }; |
439 | 437 |
440 } // namespace net | 438 } // namespace net |
441 | 439 |
442 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 440 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
OLD | NEW |