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 20 matching lines...) Expand all Loading... |
31 class HostEventDispatcher; | 31 class HostEventDispatcher; |
32 | 32 |
33 // This class represents a remote viewer connection to the chromoting | 33 // This class represents a remote viewer connection to the chromoting |
34 // host. It sets up all protocol channels and connects them to the | 34 // host. It sets up all protocol channels and connects them to the |
35 // stubs. | 35 // stubs. |
36 class ConnectionToClient : public base::NonThreadSafe, | 36 class ConnectionToClient : public base::NonThreadSafe, |
37 public Session::EventHandler { | 37 public Session::EventHandler { |
38 public: | 38 public: |
39 class EventHandler { | 39 class EventHandler { |
40 public: | 40 public: |
| 41 // Called when the network connection is authenticating |
| 42 virtual void OnConnectionAuthenticating(ConnectionToClient* connection) = 0; |
| 43 |
41 // Called when the network connection is authenticated. | 44 // Called when the network connection is authenticated. |
42 virtual void OnConnectionAuthenticated(ConnectionToClient* connection) = 0; | 45 virtual void OnConnectionAuthenticated(ConnectionToClient* connection) = 0; |
43 | 46 |
44 // Called when the network connection is authenticated and all | 47 // Called when the network connection is authenticated and all |
45 // channels are connected. | 48 // channels are connected. |
46 virtual void OnConnectionChannelsConnected( | 49 virtual void OnConnectionChannelsConnected( |
47 ConnectionToClient* connection) = 0; | 50 ConnectionToClient* connection) = 0; |
48 | 51 |
49 // Called when the network connection is closed or failed. | 52 // Called when the network connection is closed or failed. |
50 virtual void OnConnectionClosed(ConnectionToClient* connection, | 53 virtual void OnConnectionClosed(ConnectionToClient* connection, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 scoped_ptr<VideoWriter> video_writer_; | 135 scoped_ptr<VideoWriter> video_writer_; |
133 scoped_ptr<AudioWriter> audio_writer_; | 136 scoped_ptr<AudioWriter> audio_writer_; |
134 | 137 |
135 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); | 138 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); |
136 }; | 139 }; |
137 | 140 |
138 } // namespace protocol | 141 } // namespace protocol |
139 } // namespace remoting | 142 } // namespace remoting |
140 | 143 |
141 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ | 144 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ |
OLD | NEW |