Chromium Code Reviews| 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_SOCKET_STREAM_SOCKET_H_ | 5 #ifndef NET_SOCKET_STREAM_SOCKET_H_ |
| 6 #define NET_SOCKET_STREAM_SOCKET_H_ | 6 #define NET_SOCKET_STREAM_SOCKET_H_ |
| 7 | 7 |
| 8 #include "net/log/net_log.h" | 8 #include "net/log/net_log.h" |
| 9 #include "net/socket/connection_attempts.h" | |
|
Randy Smith (Not in Mondays)
2015/05/01 17:39:49
Replace with forward decl.
Deprecated (see juliatuttle)
2015/05/04 19:44:50
Can't, it's a typedef.
| |
| 9 #include "net/socket/next_proto.h" | 10 #include "net/socket/next_proto.h" |
| 10 #include "net/socket/socket.h" | 11 #include "net/socket/socket.h" |
| 11 | 12 |
| 12 namespace net { | 13 namespace net { |
| 13 | 14 |
| 14 class AddressList; | 15 class AddressList; |
| 15 class IPEndPoint; | 16 class IPEndPoint; |
| 16 class SSLInfo; | 17 class SSLInfo; |
| 17 | 18 |
| 18 class NET_EXPORT_PRIVATE StreamSocket : public Socket { | 19 class NET_EXPORT_PRIVATE StreamSocket : public Socket { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 virtual bool WasNpnNegotiated() const = 0; | 89 virtual bool WasNpnNegotiated() const = 0; |
| 89 | 90 |
| 90 // Returns the protocol negotiated via NPN for this socket, or | 91 // Returns the protocol negotiated via NPN for this socket, or |
| 91 // kProtoUnknown will be returned if NPN is not applicable. | 92 // kProtoUnknown will be returned if NPN is not applicable. |
| 92 virtual NextProto GetNegotiatedProtocol() const = 0; | 93 virtual NextProto GetNegotiatedProtocol() const = 0; |
| 93 | 94 |
| 94 // Gets the SSL connection information of the socket. Returns false if | 95 // Gets the SSL connection information of the socket. Returns false if |
| 95 // SSL was not used by this socket. | 96 // SSL was not used by this socket. |
| 96 virtual bool GetSSLInfo(SSLInfo* ssl_info) = 0; | 97 virtual bool GetSSLInfo(SSLInfo* ssl_info) = 0; |
| 97 | 98 |
| 99 virtual void GetConnectionAttempts(ConnectionAttempts* out) const; | |
| 100 | |
| 98 protected: | 101 protected: |
| 99 // The following class is only used to gather statistics about the history of | 102 // The following class is only used to gather statistics about the history of |
| 100 // a socket. It is only instantiated and used in basic sockets, such as | 103 // a socket. It is only instantiated and used in basic sockets, such as |
| 101 // TCPClientSocket* instances. Other classes that are derived from | 104 // TCPClientSocket* instances. Other classes that are derived from |
| 102 // StreamSocket should forward any potential settings to their underlying | 105 // StreamSocket should forward any potential settings to their underlying |
| 103 // transport sockets. | 106 // transport sockets. |
| 104 class UseHistory { | 107 class UseHistory { |
| 105 public: | 108 public: |
| 106 UseHistory(); | 109 UseHistory(); |
| 107 ~UseHistory(); | 110 ~UseHistory(); |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 134 // identify the motivation. | 137 // identify the motivation. |
| 135 bool omnibox_speculation_; | 138 bool omnibox_speculation_; |
| 136 bool subresource_speculation_; | 139 bool subresource_speculation_; |
| 137 DISALLOW_COPY_AND_ASSIGN(UseHistory); | 140 DISALLOW_COPY_AND_ASSIGN(UseHistory); |
| 138 }; | 141 }; |
| 139 }; | 142 }; |
| 140 | 143 |
| 141 } // namespace net | 144 } // namespace net |
| 142 | 145 |
| 143 #endif // NET_SOCKET_STREAM_SOCKET_H_ | 146 #endif // NET_SOCKET_STREAM_SOCKET_H_ |
| OLD | NEW |