| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 enum FactoryStatus { | 372 enum FactoryStatus { |
| 373 OPEN, // New streams may be created. | 373 OPEN, // New streams may be created. |
| 374 CLOSED, // No new streams may be created temporarily. | 374 CLOSED, // No new streams may be created temporarily. |
| 375 DISABLED // No more streams may be created until the network changes. | 375 DISABLED // No more streams may be created until the network changes. |
| 376 }; | 376 }; |
| 377 | 377 |
| 378 // Creates a job which doesn't wait for server config to be loaded from the | 378 // Creates a job which doesn't wait for server config to be loaded from the |
| 379 // disk cache. This job is started via a PostTask. | 379 // disk cache. This job is started via a PostTask. |
| 380 void CreateAuxilaryJob(const QuicSessionKey& key, | 380 void CreateAuxilaryJob(const QuicSessionKey& key, |
| 381 int cert_verify_flags, | 381 int cert_verify_flags, |
| 382 bool is_post, | |
| 383 const BoundNetLog& net_log); | 382 const BoundNetLog& net_log); |
| 384 | 383 |
| 385 // Returns a newly created QuicHttpStream owned by the caller. | 384 // Returns a newly created QuicHttpStream owned by the caller. |
| 386 std::unique_ptr<QuicHttpStream> CreateFromSession( | 385 std::unique_ptr<QuicHttpStream> CreateFromSession( |
| 387 QuicChromiumClientSession* session); | 386 QuicChromiumClientSession* session); |
| 388 | 387 |
| 389 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); | 388 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); |
| 390 void OnJobComplete(Job* job, int rv); | 389 void OnJobComplete(Job* job, int rv); |
| 391 bool HasActiveSession(const QuicServerId& server_id) const; | 390 bool HasActiveSession(const QuicServerId& server_id) const; |
| 392 bool HasActiveJob(const QuicServerId& server_id) const; | 391 bool HasActiveJob(const QuicServerId& server_id) const; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 base::TaskRunner* task_runner_; | 585 base::TaskRunner* task_runner_; |
| 587 | 586 |
| 588 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 587 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 589 | 588 |
| 590 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 589 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 591 }; | 590 }; |
| 592 | 591 |
| 593 } // namespace net | 592 } // namespace net |
| 594 | 593 |
| 595 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 594 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |