Chromium Code Reviews| Index: remoting/host/ipc_desktop_environment_factory.h |
| diff --git a/remoting/host/ipc_desktop_environment_factory.h b/remoting/host/ipc_desktop_environment_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..42241731d4c17334dcba69c13ae141cfb5f2a85d |
| --- /dev/null |
| +++ b/remoting/host/ipc_desktop_environment_factory.h |
| @@ -0,0 +1,35 @@ |
| +// 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_FACTORY_H_ |
| +#define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_FACTORY_H_ |
| + |
| +#include "remoting/host/desktop_environment_factory.h" |
| + |
| +namespace remoting { |
| + |
| +class DaemonSender; |
| + |
| +class IpcDesktopEnvironmentFactory : public DesktopEnvironmentFactory { |
|
Wez
2012/10/13 00:47:15
Add a comment to explain what this class actually
alexeypa (please no reviews)
2012/10/16 19:32:25
Done.
|
| + public: |
| + // |daemon_sender| must outlive |this|. |
|
Wez
2012/10/13 00:47:15
Clarify here what |daemon_sender| will be used for
alexeypa (please no reviews)
2012/10/16 19:32:25
Done.
|
| + IpcDesktopEnvironmentFactory( |
| + scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| + scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| + DaemonSender* daemon_sender); |
| + virtual ~IpcDesktopEnvironmentFactory(); |
| + |
| + virtual scoped_ptr<DesktopEnvironment> Create() OVERRIDE; |
| + |
| + private: |
| + // Points to an object implementing registration of desktop environment |
| + // instances. |
| + DaemonSender* daemon_sender_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); |
| +}; |
| + |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_FACTORY_H_ |