Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_FACTORY_H_ | |
| 6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_FACTORY_H_ | |
| 7 | |
| 8 #include "remoting/host/desktop_environment_factory.h" | |
| 9 | |
| 10 namespace remoting { | |
| 11 | |
| 12 class DaemonSender; | |
| 13 | |
| 14 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.
| |
| 15 public: | |
| 16 // |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.
| |
| 17 IpcDesktopEnvironmentFactory( | |
| 18 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | |
| 19 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | |
| 20 DaemonSender* daemon_sender); | |
| 21 virtual ~IpcDesktopEnvironmentFactory(); | |
| 22 | |
| 23 virtual scoped_ptr<DesktopEnvironment> Create() OVERRIDE; | |
| 24 | |
| 25 private: | |
| 26 // Points to an object implementing registration of desktop environment | |
| 27 // instances. | |
| 28 DaemonSender* daemon_sender_; | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); | |
| 31 }; | |
| 32 | |
| 33 } // namespace remoting | |
| 34 | |
| 35 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_FACTORY_H_ | |
| OLD | NEW |