| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_COMMON_SOCKET_STREAM_DISPATCHER_H_ | 5 #ifndef CHROME_COMMON_SOCKET_STREAM_DISPATCHER_H_ |
| 6 #define CHROME_COMMON_SOCKET_STREAM_DISPATCHER_H_ | 6 #define CHROME_COMMON_SOCKET_STREAM_DISPATCHER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 webkit_glue::WebSocketStreamHandleDelegate* delegate); | 34 webkit_glue::WebSocketStreamHandleDelegate* delegate); |
| 35 | 35 |
| 36 // IPC::Channel::Listener implementation. | 36 // IPC::Channel::Listener implementation. |
| 37 virtual bool OnMessageReceived(const IPC::Message& msg); | 37 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 void OnConnected(int socket_id, int max_amount_send_allowed); | 40 void OnConnected(int socket_id, int max_amount_send_allowed); |
| 41 void OnSentData(int socket_id, int amount_sent); | 41 void OnSentData(int socket_id, int amount_sent); |
| 42 void OnReceivedData(int socket_id, const std::vector<char>& data); | 42 void OnReceivedData(int socket_id, const std::vector<char>& data); |
| 43 void OnClosed(int socket_id); | 43 void OnClosed(int socket_id); |
| 44 void OnError(int socket_id, int error); |
| 44 | 45 |
| 45 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcher); | 46 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcher); |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 #endif // CHROME_COMMON_SOCKET_STREAM_DISPATCHER_H_ | 49 #endif // CHROME_COMMON_SOCKET_STREAM_DISPATCHER_H_ |
| OLD | NEW |