| 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_SOCKET_H_ | 5 #ifndef NET_SOCKET_SOCKET_H_ |
| 6 #define NET_BASE_SOCKET_H_ | 6 #define NET_SOCKET_SOCKET_H_ |
| 7 | 7 |
| 8 #include "net/base/completion_callback.h" | 8 #include "net/base/completion_callback.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 | 11 |
| 12 class IOBuffer; | 12 class IOBuffer; |
| 13 | 13 |
| 14 // Represents a read/write socket. | 14 // Represents a read/write socket. |
| 15 class Socket { | 15 class Socket { |
| 16 public: | 16 public: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 34 // immediately, the socket acquires a reference to the provided buffer until | 34 // immediately, the socket acquires a reference to the provided buffer until |
| 35 // the callback is invoked or the socket is destroyed. | 35 // the callback is invoked or the socket is destroyed. |
| 36 // Implementations of this method should not modify the contents of the actual | 36 // Implementations of this method should not modify the contents of the actual |
| 37 // buffer that is written to the socket. | 37 // buffer that is written to the socket. |
| 38 virtual int Write(IOBuffer* buf, int buf_len, | 38 virtual int Write(IOBuffer* buf, int buf_len, |
| 39 CompletionCallback* callback) = 0; | 39 CompletionCallback* callback) = 0; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace net | 42 } // namespace net |
| 43 | 43 |
| 44 #endif // NET_BASE_SOCKET_H_ | 44 #endif // NET_SOCKET_SOCKET_H_ |
| OLD | NEW |