| 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 CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_SOCKET_STREAM_DISPATCHER_H_ |
| 6 #define CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ | 6 #define CONTENT_CHILD_SOCKET_STREAM_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_listener.h" |
| 13 | 13 |
| 14 namespace WebKit { | 14 namespace WebKit { |
| 15 class WebSocketStreamHandle; | 15 class WebSocketStreamHandle; |
| 16 } | 16 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 43 void OnSentData(int socket_id, int amount_sent); | 43 void OnSentData(int socket_id, int amount_sent); |
| 44 void OnReceivedData(int socket_id, const std::vector<char>& data); | 44 void OnReceivedData(int socket_id, const std::vector<char>& data); |
| 45 void OnClosed(int socket_id); | 45 void OnClosed(int socket_id); |
| 46 void OnFailed(int socket_id, int error_code); | 46 void OnFailed(int socket_id, int error_code); |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcher); | 48 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcher); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace content | 51 } // namespace content |
| 52 | 52 |
| 53 #endif // CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ | 53 #endif // CONTENT_CHILD_SOCKET_STREAM_DISPATCHER_H_ |
| OLD | NEW |