| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_IPC_SESSION_CONTROLLER_H_ | 5 #ifndef REMOTING_HOST_IPC_SESSION_CONTROLLER_H_ |
| 6 #define REMOTING_HOST_IPC_SESSION_CONTROLLER_H_ | 6 #define REMOTING_HOST_IPC_SESSION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "remoting/host/session_controller.h" | 10 #include "remoting/host/session_controller.h" |
| 11 | 11 |
| 12 namespace remoting { | 12 namespace remoting { |
| 13 | 13 |
| 14 class DesktopSessionProxy; | 14 class DesktopSessionProxy; |
| 15 class ScreenResolution; |
| 15 | 16 |
| 16 class IpcSessionController : public SessionController { | 17 class IpcSessionController : public SessionController { |
| 17 public: | 18 public: |
| 18 explicit IpcSessionController( | 19 explicit IpcSessionController( |
| 19 scoped_refptr<DesktopSessionProxy> desktop_session_proxy); | 20 scoped_refptr<DesktopSessionProxy> desktop_session_proxy); |
| 20 virtual ~IpcSessionController(); | 21 virtual ~IpcSessionController(); |
| 21 | 22 |
| 22 // SessionController interface. | 23 // SessionController interface. |
| 23 virtual void OnClientResolutionChanged(const SkIPoint& client_dpi, | 24 virtual void SetScreenResolution(const ScreenResolution& resolution) OVERRIDE; |
| 24 const SkISize& client_size) OVERRIDE; | |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 // Wraps the IPC channel to the desktop session agent. | 27 // Wraps the IPC channel to the desktop session agent. |
| 28 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; | 28 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; |
| 29 | 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(IpcSessionController); | 30 DISALLOW_COPY_AND_ASSIGN(IpcSessionController); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace remoting | 33 } // namespace remoting |
| 34 | 34 |
| 35 #endif // REMOTING_HOST_IPC_SESSION_CONTROLLER_H_ | 35 #endif // REMOTING_HOST_IPC_SESSION_CONTROLLER_H_ |
| OLD | NEW |