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_CLIENT_SESSION_H_ | 5 #ifndef REMOTING_HOST_CLIENT_SESSION_H_ |
6 #define REMOTING_HOST_CLIENT_SESSION_H_ | 6 #define REMOTING_HOST_CLIENT_SESSION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 bool is_authenticated() { return is_authenticated_; } | 137 bool is_authenticated() { return is_authenticated_; } |
138 | 138 |
139 const std::string* client_capabilities() const { | 139 const std::string* client_capabilities() const { |
140 return client_capabilities_.get(); | 140 return client_capabilities_.get(); |
141 } | 141 } |
142 | 142 |
143 private: | 143 private: |
144 // Creates a proxy for sending clipboard events to the client. | 144 // Creates a proxy for sending clipboard events to the client. |
145 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy(); | 145 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy(); |
146 | 146 |
147 void OnScreenSizeChanged(const webrtc::DesktopSize& size); | 147 void OnScreenSizeChanged(const webrtc::DesktopSize& size, |
| 148 const webrtc::DesktopVector& dpi); |
148 | 149 |
149 EventHandler* event_handler_; | 150 EventHandler* event_handler_; |
150 | 151 |
151 // The connection to the client. | 152 // The connection to the client. |
152 scoped_ptr<protocol::ConnectionToClient> connection_; | 153 scoped_ptr<protocol::ConnectionToClient> connection_; |
153 | 154 |
154 std::string client_jid_; | 155 std::string client_jid_; |
155 | 156 |
156 // Used to create a DesktopEnvironment instance for this session. | 157 // Used to create a DesktopEnvironment instance for this session. |
157 DesktopEnvironmentFactory* desktop_environment_factory_; | 158 DesktopEnvironmentFactory* desktop_environment_factory_; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // Used to disable callbacks to |this| once DisconnectSession() has been | 235 // Used to disable callbacks to |this| once DisconnectSession() has been |
235 // called. | 236 // called. |
236 base::WeakPtrFactory<ClientSessionControl> weak_factory_; | 237 base::WeakPtrFactory<ClientSessionControl> weak_factory_; |
237 | 238 |
238 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 239 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
239 }; | 240 }; |
240 | 241 |
241 } // namespace remoting | 242 } // namespace remoting |
242 | 243 |
243 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 244 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
OLD | NEW |