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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/socket/connection_attempts.h" | 12 #include "net/socket/connection_attempts.h" |
13 #include "net/socket/next_proto.h" | 13 #include "net/socket/next_proto.h" |
14 #include "net/socket/socket.h" | 14 #include "net/socket/socket.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 class AddressList; | |
19 class IPEndPoint; | 18 class IPEndPoint; |
20 class NetLogWithSource; | 19 class NetLogWithSource; |
21 class SSLInfo; | 20 class SSLInfo; |
22 | 21 |
23 class NET_EXPORT_PRIVATE StreamSocket : public Socket { | 22 class NET_EXPORT_PRIVATE StreamSocket : public Socket { |
24 public: | 23 public: |
25 ~StreamSocket() override {} | 24 ~StreamSocket() override {} |
26 | 25 |
27 // Called to establish a connection. Returns OK if the connection could be | 26 // Called to establish a connection. Returns OK if the connection could be |
28 // established synchronously. Otherwise, ERR_IO_PENDING is returned and the | 27 // established synchronously. Otherwise, ERR_IO_PENDING is returned and the |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // identify the motivation. | 149 // identify the motivation. |
151 bool omnibox_speculation_; | 150 bool omnibox_speculation_; |
152 bool subresource_speculation_; | 151 bool subresource_speculation_; |
153 DISALLOW_COPY_AND_ASSIGN(UseHistory); | 152 DISALLOW_COPY_AND_ASSIGN(UseHistory); |
154 }; | 153 }; |
155 }; | 154 }; |
156 | 155 |
157 } // namespace net | 156 } // namespace net |
158 | 157 |
159 #endif // NET_SOCKET_STREAM_SOCKET_H_ | 158 #endif // NET_SOCKET_STREAM_SOCKET_H_ |
OLD | NEW |