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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 // Called by a session whose connection has timed out. | 156 // Called by a session whose connection has timed out. |
157 void OnSessionConnectTimeout(QuicClientSession* session); | 157 void OnSessionConnectTimeout(QuicClientSession* session); |
158 | 158 |
159 // Cancels a pending request. | 159 // Cancels a pending request. |
160 void CancelRequest(QuicStreamRequest* request); | 160 void CancelRequest(QuicStreamRequest* request); |
161 | 161 |
162 // Closes all current sessions. | 162 // Closes all current sessions. |
163 void CloseAllSessions(int error); | 163 void CloseAllSessions(int error); |
164 | 164 |
165 base::Value* QuicStreamFactoryInfoToValue() const; | 165 scoped_ptr<base::Value> QuicStreamFactoryInfoToValue() const; |
166 | 166 |
167 // Delete all cached state objects in |crypto_config_|. | 167 // Delete all cached state objects in |crypto_config_|. |
168 void ClearCachedStatesInCryptoConfig(); | 168 void ClearCachedStatesInCryptoConfig(); |
169 | 169 |
170 // NetworkChangeNotifier::IPAddressObserver methods: | 170 // NetworkChangeNotifier::IPAddressObserver methods: |
171 | 171 |
172 // Until the servers support roaming, close all connections when the local | 172 // Until the servers support roaming, close all connections when the local |
173 // IP address changes. | 173 // IP address changes. |
174 void OnIPAddressChanged() override; | 174 void OnIPAddressChanged() override; |
175 | 175 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 base::TaskRunner* task_runner_; | 376 base::TaskRunner* task_runner_; |
377 | 377 |
378 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 378 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
379 | 379 |
380 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 380 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
381 }; | 381 }; |
382 | 382 |
383 } // namespace net | 383 } // namespace net |
384 | 384 |
385 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 385 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |