| 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_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
| 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // desktop environment. | 59 // desktop environment. |
| 60 virtual scoped_ptr<GnubbyAuthHandler> CreateGnubbyAuthHandler( | 60 virtual scoped_ptr<GnubbyAuthHandler> CreateGnubbyAuthHandler( |
| 61 protocol::ClientStub* client_stub) = 0; | 61 protocol::ClientStub* client_stub) = 0; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 // Used to create |DesktopEnvironment| instances. | 64 // Used to create |DesktopEnvironment| instances. |
| 65 class DesktopEnvironmentFactory { | 65 class DesktopEnvironmentFactory { |
| 66 public: | 66 public: |
| 67 virtual ~DesktopEnvironmentFactory() {} | 67 virtual ~DesktopEnvironmentFactory() {} |
| 68 | 68 |
| 69 // Creates an instance of |DesktopEnvironment|. Returns a NULL pointer if | 69 // Creates an instance of |DesktopEnvironment|. Returns a nullptr pointer if |
| 70 // the desktop environment could not be created for any reason (if the curtain | 70 // the desktop environment could not be created for any reason (if the curtain |
| 71 // failed to active for instance). |client_session_control| must outlive | 71 // failed to active for instance). |client_session_control| must outlive |
| 72 // the created desktop environment. | 72 // the created desktop environment. |
| 73 virtual scoped_ptr<DesktopEnvironment> Create( | 73 virtual scoped_ptr<DesktopEnvironment> Create( |
| 74 base::WeakPtr<ClientSessionControl> client_session_control) = 0; | 74 base::WeakPtr<ClientSessionControl> client_session_control) = 0; |
| 75 | 75 |
| 76 // Enables or disables the curtain mode. | 76 // Enables or disables the curtain mode. |
| 77 virtual void SetEnableCurtaining(bool enable) {} | 77 virtual void SetEnableCurtaining(bool enable) {} |
| 78 | 78 |
| 79 // Returns |true| if created |DesktopEnvironment| instances support audio | 79 // Returns |true| if created |DesktopEnvironment| instances support audio |
| 80 // capture. | 80 // capture. |
| 81 virtual bool SupportsAudioCapture() const = 0; | 81 virtual bool SupportsAudioCapture() const = 0; |
| 82 | 82 |
| 83 // Enables or disables gnubby authentication. | 83 // Enables or disables gnubby authentication. |
| 84 virtual void SetEnableGnubbyAuth(bool enable) {} | 84 virtual void SetEnableGnubbyAuth(bool enable) {} |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace remoting | 87 } // namespace remoting |
| 88 | 88 |
| 89 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 89 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |