| 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_IPC_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
| 6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
| 7 | 7 |
| 8 #include <cstdint> |
| 8 #include <map> | 9 #include <map> |
| 9 #include <memory> | 10 #include <memory> |
| 10 #include <string> | 11 #include <string> |
| 11 | 12 |
| 12 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 13 #include "base/macros.h" | 14 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 16 #include "remoting/host/desktop_environment.h" | 17 #include "remoting/host/desktop_environment.h" |
| 17 #include "remoting/host/desktop_session_connector.h" | 18 #include "remoting/host/desktop_session_connector.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 50 |
| 50 // DesktopEnvironment implementation. | 51 // DesktopEnvironment implementation. |
| 51 std::unique_ptr<AudioCapturer> CreateAudioCapturer() override; | 52 std::unique_ptr<AudioCapturer> CreateAudioCapturer() override; |
| 52 std::unique_ptr<InputInjector> CreateInputInjector() override; | 53 std::unique_ptr<InputInjector> CreateInputInjector() override; |
| 53 std::unique_ptr<ScreenControls> CreateScreenControls() override; | 54 std::unique_ptr<ScreenControls> CreateScreenControls() override; |
| 54 std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() override; | 55 std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() override; |
| 55 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() | 56 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() |
| 56 override; | 57 override; |
| 57 std::string GetCapabilities() const override; | 58 std::string GetCapabilities() const override; |
| 58 void SetCapabilities(const std::string& capabilities) override; | 59 void SetCapabilities(const std::string& capabilities) override; |
| 60 uint32_t GetDesktopSessionId() const override; |
| 59 | 61 |
| 60 private: | 62 private: |
| 61 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; | 63 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; |
| 62 | 64 |
| 63 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironment); | 65 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironment); |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 // Used to create IpcDesktopEnvironment objects integrating with the desktop via | 68 // Used to create IpcDesktopEnvironment objects integrating with the desktop via |
| 67 // a helper process and talking to that process via IPC. | 69 // a helper process and talking to that process via IPC. |
| 68 class IpcDesktopEnvironmentFactory | 70 class IpcDesktopEnvironmentFactory |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 136 |
| 135 // Factory for weak pointers to DesktopSessionConnector interface. | 137 // Factory for weak pointers to DesktopSessionConnector interface. |
| 136 base::WeakPtrFactory<DesktopSessionConnector> connector_factory_; | 138 base::WeakPtrFactory<DesktopSessionConnector> connector_factory_; |
| 137 | 139 |
| 138 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); | 140 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); |
| 139 }; | 141 }; |
| 140 | 142 |
| 141 } // namespace remoting | 143 } // namespace remoting |
| 142 | 144 |
| 143 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ | 145 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |