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_HOST_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_H_ |
6 #define REMOTING_HOST_CHROMOTING_HOST_H_ | 6 #define REMOTING_HOST_CHROMOTING_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
14 #include "net/base/backoff_entry.h" | 14 #include "net/base/backoff_entry.h" |
15 #include "remoting/host/client_session.h" | 15 #include "remoting/host/client_session.h" |
16 #include "remoting/host/host_key_pair.h" | 16 #include "remoting/host/host_key_pair.h" |
17 #include "remoting/host/host_status_observer.h" | 17 #include "remoting/host/host_status_observer.h" |
18 #include "remoting/host/mouse_move_observer.h" | 18 #include "remoting/host/mouse_move_observer.h" |
19 #include "remoting/host/ui_strings.h" | 19 #include "remoting/host/ui_strings.h" |
20 #include "remoting/protocol/authenticator.h" | 20 #include "remoting/protocol/authenticator.h" |
21 #include "remoting/protocol/session_manager.h" | 21 #include "remoting/protocol/session_manager.h" |
22 #include "remoting/protocol/connection_to_client.h" | 22 #include "remoting/protocol/connection_to_client.h" |
| 23 #include "third_party/skia/include/core/SkSize.h" |
23 | 24 |
24 namespace remoting { | 25 namespace remoting { |
25 | 26 |
26 namespace protocol { | 27 namespace protocol { |
27 class InputStub; | 28 class InputStub; |
28 class SessionConfig; | 29 class SessionConfig; |
29 class CandidateSessionConfig; | 30 class CandidateSessionConfig; |
30 } // namespace protocol | 31 } // namespace protocol |
31 | 32 |
32 class ChromotingHostContext; | 33 class ChromotingHostContext; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; | 110 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; |
110 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; | 111 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; |
111 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; | 112 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; |
112 virtual void OnSessionSequenceNumber(ClientSession* session, | 113 virtual void OnSessionSequenceNumber(ClientSession* session, |
113 int64 sequence_number) OVERRIDE; | 114 int64 sequence_number) OVERRIDE; |
114 virtual void OnSessionRouteChange( | 115 virtual void OnSessionRouteChange( |
115 ClientSession* session, | 116 ClientSession* session, |
116 const std::string& channel_name, | 117 const std::string& channel_name, |
117 const protocol::TransportRoute& route) OVERRIDE; | 118 const protocol::TransportRoute& route) OVERRIDE; |
118 | 119 |
| 120 virtual void OnClientDimensionsChanged(const SkISize& size) OVERRIDE; |
| 121 |
119 // SessionManager::Listener implementation. | 122 // SessionManager::Listener implementation. |
120 virtual void OnSessionManagerReady() OVERRIDE; | 123 virtual void OnSessionManagerReady() OVERRIDE; |
121 virtual void OnIncomingSession( | 124 virtual void OnIncomingSession( |
122 protocol::Session* session, | 125 protocol::Session* session, |
123 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE; | 126 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE; |
124 | 127 |
125 // MouseMoveObserver interface. | 128 // MouseMoveObserver interface. |
126 virtual void OnLocalMouseMoved(const SkIPoint& new_pos) OVERRIDE; | 129 virtual void OnLocalMouseMoved(const SkIPoint& new_pos) OVERRIDE; |
127 | 130 |
128 // Sets desired configuration for the protocol. Ownership of the | 131 // Sets desired configuration for the protocol. Ownership of the |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 213 |
211 // The maximum duration of any session. | 214 // The maximum duration of any session. |
212 base::TimeDelta max_session_duration_; | 215 base::TimeDelta max_session_duration_; |
213 | 216 |
214 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 217 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
215 }; | 218 }; |
216 | 219 |
217 } // namespace remoting | 220 } // namespace remoting |
218 | 221 |
219 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 222 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |