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 REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ | 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ |
6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ | 6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 27 matching lines...) Expand all Loading... |
38 virtual ~EventHandler() {} | 38 virtual ~EventHandler() {} |
39 | 39 |
40 // Called when the network connection is opened. | 40 // Called when the network connection is opened. |
41 virtual void OnConnectionOpened(ConnectionToClient* connection) = 0; | 41 virtual void OnConnectionOpened(ConnectionToClient* connection) = 0; |
42 | 42 |
43 // Called when the network connection is closed. | 43 // Called when the network connection is closed. |
44 virtual void OnConnectionClosed(ConnectionToClient* connection) = 0; | 44 virtual void OnConnectionClosed(ConnectionToClient* connection) = 0; |
45 | 45 |
46 // Called when the network connection has failed. | 46 // Called when the network connection has failed. |
47 virtual void OnConnectionFailed(ConnectionToClient* connection, | 47 virtual void OnConnectionFailed(ConnectionToClient* connection, |
48 Session::Error error) = 0; | 48 ErrorCode error) = 0; |
49 | 49 |
50 // Called when sequence number is updated. | 50 // Called when sequence number is updated. |
51 virtual void OnSequenceNumberUpdated(ConnectionToClient* connection, | 51 virtual void OnSequenceNumberUpdated(ConnectionToClient* connection, |
52 int64 sequence_number) = 0; | 52 int64 sequence_number) = 0; |
53 | 53 |
54 // Called on notification of a route change event, which happens when a | 54 // Called on notification of a route change event, which happens when a |
55 // channel is connected. | 55 // channel is connected. |
56 virtual void OnRouteChange(ConnectionToClient* connection, | 56 virtual void OnRouteChange(ConnectionToClient* connection, |
57 const std::string& channel_name, | 57 const std::string& channel_name, |
58 const net::IPEndPoint& remote_end_point, | 58 const net::IPEndPoint& remote_end_point, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 scoped_ptr<HostEventDispatcher> event_dispatcher_; | 120 scoped_ptr<HostEventDispatcher> event_dispatcher_; |
121 scoped_ptr<VideoWriter> video_writer_; | 121 scoped_ptr<VideoWriter> video_writer_; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); | 123 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); |
124 }; | 124 }; |
125 | 125 |
126 } // namespace protocol | 126 } // namespace protocol |
127 } // namespace remoting | 127 } // namespace remoting |
128 | 128 |
129 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ | 129 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ |
OLD | NEW |