Chromium Code Reviews| Index: remoting/host/ipc_desktop_environment.h |
| diff --git a/remoting/host/ipc_desktop_environment.h b/remoting/host/ipc_desktop_environment.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1f6c680c400aadf3f8afcf01a25ac456d7c11484 |
| --- /dev/null |
| +++ b/remoting/host/ipc_desktop_environment.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
| +#define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "remoting/host/desktop_environment.h" |
| + |
| +namespace remoting { |
| + |
| +class DaemonSender; |
| + |
| +class IpcDesktopEnvironment : public DesktopEnvironment { |
|
Wez
2012/10/13 00:47:15
Add a description of what IpcDesktopEnvironment is
alexeypa (please no reviews)
2012/10/16 19:32:25
Done.
|
| + public: |
| + // |daemon_sender| must outlive |this|. |
| + IpcDesktopEnvironment(scoped_ptr<AudioCapturer> audio_capturer, |
| + scoped_ptr<EventExecutor> event_executor, |
| + scoped_ptr<VideoFrameCapturer> video_capturer, |
| + DaemonSender* daemon_sender); |
| + virtual ~IpcDesktopEnvironment(); |
| + |
| + virtual void Start( |
| + scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE; |
| + |
| + private: |
| + // Points to an object implementing registration of desktop environment |
| + // instances. |
| + DaemonSender* daemon_sender_; |
| + |
| + // True if a terminal has been opened by the daemon process for |this|. |
| + bool terminal_opened_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironment); |
| +}; |
| + |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |