| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BASE_CLIENT_SOCKET_HANDLE_H_ | 5 #ifndef NET_SOCKET_CLIENT_SOCKET_HANDLE_H_ |
| 6 #define NET_BASE_CLIENT_SOCKET_HANDLE_H_ | 6 #define NET_SOCKET_CLIENT_SOCKET_HANDLE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "net/base/client_socket.h" | |
| 13 #include "net/base/completion_callback.h" | 12 #include "net/base/completion_callback.h" |
| 14 #include "net/base/host_resolver.h" | 13 #include "net/base/host_resolver.h" |
| 15 #include "net/base/load_states.h" | 14 #include "net/base/load_states.h" |
| 15 #include "net/socket/client_socket.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 class ClientSocketPool; | 19 class ClientSocketPool; |
| 20 | 20 |
| 21 // A container for a ClientSocket. | 21 // A container for a ClientSocket. |
| 22 // | 22 // |
| 23 // The handle's |group_name| uniquely identifies the origin and type of the | 23 // The handle's |group_name| uniquely identifies the origin and type of the |
| 24 // connection. It is used by the ClientSocketPool to group similar connected | 24 // connection. It is used by the ClientSocketPool to group similar connected |
| 25 // client socket objects. | 25 // client socket objects. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 std::string group_name_; | 90 std::string group_name_; |
| 91 bool is_reused_; | 91 bool is_reused_; |
| 92 CompletionCallbackImpl<ClientSocketHandle> callback_; | 92 CompletionCallbackImpl<ClientSocketHandle> callback_; |
| 93 CompletionCallback* user_callback_; | 93 CompletionCallback* user_callback_; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(ClientSocketHandle); | 95 DISALLOW_COPY_AND_ASSIGN(ClientSocketHandle); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace net | 98 } // namespace net |
| 99 | 99 |
| 100 #endif // NET_BASE_CLIENT_SOCKET_HANDLE_H_ | 100 #endif // NET_SOCKET_CLIENT_SOCKET_HANDLE_H_ |
| OLD | NEW |