OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_SOCKET_STREAM_DISPATCHER_H_ |
6 #define CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ | 6 #define CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ |
7 #pragma once | |
8 | 7 |
9 #include <vector> | 8 #include <vector> |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
13 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_listener.h" |
14 | 13 |
15 namespace WebKit { | 14 namespace WebKit { |
16 class WebSocketStreamHandle; | 15 class WebSocketStreamHandle; |
17 } | 16 } |
(...skipping 22 matching lines...) Expand all Loading... |
40 private: | 39 private: |
41 void OnConnected(int socket_id, int max_amount_send_allowed); | 40 void OnConnected(int socket_id, int max_amount_send_allowed); |
42 void OnSentData(int socket_id, int amount_sent); | 41 void OnSentData(int socket_id, int amount_sent); |
43 void OnReceivedData(int socket_id, const std::vector<char>& data); | 42 void OnReceivedData(int socket_id, const std::vector<char>& data); |
44 void OnClosed(int socket_id); | 43 void OnClosed(int socket_id); |
45 | 44 |
46 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcher); | 45 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcher); |
47 }; | 46 }; |
48 | 47 |
49 #endif // CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ | 48 #endif // CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ |
OLD | NEW |