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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // Until the servers support roaming, close all connections when the local | 153 // Until the servers support roaming, close all connections when the local |
154 // IP address changes. | 154 // IP address changes. |
155 void OnIPAddressChanged() override; | 155 void OnIPAddressChanged() override; |
156 | 156 |
157 // CertDatabase::Observer methods: | 157 // CertDatabase::Observer methods: |
158 | 158 |
159 // We close all sessions when certificate database is changed. | 159 // We close all sessions when certificate database is changed. |
160 void OnCertAdded(const X509Certificate* cert) override; | 160 void OnCertAdded(const X509Certificate* cert) override; |
161 void OnCACertChanged(const X509Certificate* cert) override; | 161 void OnCACertChanged(const X509Certificate* cert) override; |
162 | 162 |
| 163 // Helper method. |
| 164 void ConfirmQuic(const QuicServerId& server_id) const; |
| 165 |
163 bool require_confirmation() const { | 166 bool require_confirmation() const { |
164 return require_confirmation_; | 167 return require_confirmation_; |
165 } | 168 } |
166 | 169 |
167 void set_require_confirmation(bool require_confirmation); | 170 void set_require_confirmation(bool require_confirmation); |
168 | 171 |
169 QuicConnectionHelper* helper() { return helper_.get(); } | 172 QuicConnectionHelper* helper() { return helper_.get(); } |
170 | 173 |
171 bool enable_port_selection() const { return enable_port_selection_; } | 174 bool enable_port_selection() const { return enable_port_selection_; } |
172 | 175 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 base::TaskRunner* task_runner_; | 351 base::TaskRunner* task_runner_; |
349 | 352 |
350 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 353 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
351 | 354 |
352 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 355 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
353 }; | 356 }; |
354 | 357 |
355 } // namespace net | 358 } // namespace net |
356 | 359 |
357 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 360 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |