| 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/base/net_log.h" | 8 #include "net/base/net_log.h" |
| 9 #include "net/socket/next_proto.h" | 9 #include "net/socket/next_proto.h" |
| 10 #include "net/socket/socket.h" | 10 #include "net/socket/socket.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 class AddressList; | 14 class AddressList; |
| 15 class IPEndPoint; | 15 class IPEndPoint; |
| 16 class SSLInfo; | 16 class SSLInfo; |
| 17 | 17 |
| 18 class NET_EXPORT_PRIVATE StreamSocket : public Socket { | 18 class NET_EXPORT_PRIVATE StreamSocket : public Socket { |
| 19 public: | 19 public: |
| 20 virtual ~StreamSocket() {} | 20 ~StreamSocket() override {} |
| 21 | 21 |
| 22 // Called to establish a connection. Returns OK if the connection could be | 22 // Called to establish a connection. Returns OK if the connection could be |
| 23 // established synchronously. Otherwise, ERR_IO_PENDING is returned and the | 23 // established synchronously. Otherwise, ERR_IO_PENDING is returned and the |
| 24 // given callback will run asynchronously when the connection is established | 24 // given callback will run asynchronously when the connection is established |
| 25 // or when an error occurs. The result is some other error code if the | 25 // or when an error occurs. The result is some other error code if the |
| 26 // connection could not be established. | 26 // connection could not be established. |
| 27 // | 27 // |
| 28 // The socket's Read and Write methods may not be called until Connect | 28 // The socket's Read and Write methods may not be called until Connect |
| 29 // succeeds. | 29 // succeeds. |
| 30 // | 30 // |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // identify the motivation. | 134 // identify the motivation. |
| 135 bool omnibox_speculation_; | 135 bool omnibox_speculation_; |
| 136 bool subresource_speculation_; | 136 bool subresource_speculation_; |
| 137 DISALLOW_COPY_AND_ASSIGN(UseHistory); | 137 DISALLOW_COPY_AND_ASSIGN(UseHistory); |
| 138 }; | 138 }; |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace net | 141 } // namespace net |
| 142 | 142 |
| 143 #endif // NET_SOCKET_STREAM_SOCKET_H_ | 143 #endif // NET_SOCKET_STREAM_SOCKET_H_ |
| OLD | NEW |