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_ |
11 #define NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 11 #define NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
12 | 12 |
13 #include <stddef.h> | 13 #include <stddef.h> |
14 | 14 |
15 #include <list> | 15 #include <list> |
16 #include <memory> | 16 #include <memory> |
17 #include <set> | 17 #include <set> |
18 #include <string> | 18 #include <string> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "base/containers/mru_cache.h" | 21 #include "base/containers/mru_cache.h" |
22 #include "base/macros.h" | 22 #include "base/macros.h" |
23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
24 #include "net/base/completion_callback.h" | 24 #include "net/base/completion_callback.h" |
25 #include "net/base/load_timing_info.h" | 25 #include "net/base/load_timing_info.h" |
26 #include "net/base/net_error_details.h" | 26 #include "net/base/net_error_details.h" |
27 #include "net/cert/ct_verify_result.h" | 27 #include "net/cert/ct_verify_result.h" |
| 28 #include "net/log/net_log_with_source.h" |
28 #include "net/proxy/proxy_server.h" | 29 #include "net/proxy/proxy_server.h" |
29 #include "net/quic/chromium/quic_chromium_client_stream.h" | 30 #include "net/quic/chromium/quic_chromium_client_stream.h" |
30 #include "net/quic/chromium/quic_chromium_packet_reader.h" | 31 #include "net/quic/chromium/quic_chromium_packet_reader.h" |
31 #include "net/quic/chromium/quic_chromium_packet_writer.h" | 32 #include "net/quic/chromium/quic_chromium_packet_writer.h" |
32 #include "net/quic/chromium/quic_connection_logger.h" | 33 #include "net/quic/chromium/quic_connection_logger.h" |
33 #include "net/quic/core/quic_client_session_base.h" | 34 #include "net/quic/core/quic_client_session_base.h" |
34 #include "net/quic/core/quic_crypto_client_stream.h" | 35 #include "net/quic/core/quic_crypto_client_stream.h" |
35 #include "net/quic/core/quic_protocol.h" | 36 #include "net/quic/core/quic_protocol.h" |
36 #include "net/quic/core/quic_server_id.h" | 37 #include "net/quic/core/quic_server_id.h" |
37 #include "net/quic/core/quic_time.h" | 38 #include "net/quic/core/quic_time.h" |
38 #include "net/socket/socket_performance_watcher.h" | 39 #include "net/socket/socket_performance_watcher.h" |
39 | 40 |
40 namespace net { | 41 namespace net { |
41 | 42 |
42 class CertVerifyResult; | 43 class CertVerifyResult; |
43 class DatagramClientSocket; | 44 class DatagramClientSocket; |
| 45 class NetLog; |
44 class QuicCryptoClientStreamFactory; | 46 class QuicCryptoClientStreamFactory; |
45 class QuicServerInfo; | 47 class QuicServerInfo; |
46 class QuicStreamFactory; | 48 class QuicStreamFactory; |
47 class SSLInfo; | 49 class SSLInfo; |
48 class TransportSecurityState; | 50 class TransportSecurityState; |
49 | 51 |
50 using TokenBindingSignatureMap = | 52 using TokenBindingSignatureMap = |
51 base::MRUCache<std::pair<TokenBindingType, std::string>, | 53 base::MRUCache<std::pair<TokenBindingType, std::string>, |
52 std::vector<uint8_t>>; | 54 std::vector<uint8_t>>; |
53 | 55 |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // the current sockets_.size() == the passed in value. | 390 // the current sockets_.size() == the passed in value. |
389 bool migration_pending_; // True while migration is underway. | 391 bool migration_pending_; // True while migration is underway. |
390 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 392 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
391 | 393 |
392 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 394 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
393 }; | 395 }; |
394 | 396 |
395 } // namespace net | 397 } // namespace net |
396 | 398 |
397 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 399 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
OLD | NEW |