| 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_PROCESS_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_PROCESS_H_ |
| 6 #define REMOTING_HOST_DESKTOP_PROCESS_H_ | 6 #define REMOTING_HOST_DESKTOP_PROCESS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "ipc/ipc_listener.h" | 18 #include "ipc/ipc_listener.h" |
| 19 #include "remoting/host/desktop_session_agent.h" | 19 #include "remoting/host/desktop_session_agent.h" |
| 20 | 20 |
| 21 namespace IPC { | 21 namespace IPC { |
| 22 class AttachmentBrokerUnprivileged; |
| 22 class ChannelProxy; | 23 class ChannelProxy; |
| 23 } // namespace IPC | 24 } // namespace IPC |
| 24 | 25 |
| 25 namespace remoting { | 26 namespace remoting { |
| 26 | 27 |
| 27 class AutoThreadTaskRunner; | 28 class AutoThreadTaskRunner; |
| 28 class DesktopEnvironment; | 29 class DesktopEnvironment; |
| 29 class DesktopEnvironmentFactory; | 30 class DesktopEnvironmentFactory; |
| 30 class DesktopSessionAgent; | 31 class DesktopSessionAgent; |
| 31 | 32 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Used to run input-related tasks. | 70 // Used to run input-related tasks. |
| 70 scoped_refptr<AutoThreadTaskRunner> input_task_runner_; | 71 scoped_refptr<AutoThreadTaskRunner> input_task_runner_; |
| 71 | 72 |
| 72 // Factory used to create integration components for use by |desktop_agent_|. | 73 // Factory used to create integration components for use by |desktop_agent_|. |
| 73 scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory_; | 74 scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory_; |
| 74 | 75 |
| 75 // Name of the IPC channel connecting the desktop process with the daemon | 76 // Name of the IPC channel connecting the desktop process with the daemon |
| 76 // process. | 77 // process. |
| 77 std::string daemon_channel_name_; | 78 std::string daemon_channel_name_; |
| 78 | 79 |
| 80 // Attachment broker for |daemon_channel_|. |
| 81 scoped_ptr<IPC::AttachmentBrokerUnprivileged> attachment_broker_; |
| 82 |
| 79 // IPC channel connecting the desktop process with the daemon process. | 83 // IPC channel connecting the desktop process with the daemon process. |
| 80 scoped_ptr<IPC::ChannelProxy> daemon_channel_; | 84 scoped_ptr<IPC::ChannelProxy> daemon_channel_; |
| 81 | 85 |
| 82 // Provides screen/audio capturing and input injection services for | 86 // Provides screen/audio capturing and input injection services for |
| 83 // the network process. | 87 // the network process. |
| 84 scoped_refptr<DesktopSessionAgent> desktop_agent_; | 88 scoped_refptr<DesktopSessionAgent> desktop_agent_; |
| 85 | 89 |
| 86 DISALLOW_COPY_AND_ASSIGN(DesktopProcess); | 90 DISALLOW_COPY_AND_ASSIGN(DesktopProcess); |
| 87 }; | 91 }; |
| 88 | 92 |
| 89 } // namespace remoting | 93 } // namespace remoting |
| 90 | 94 |
| 91 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_ | 95 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_ |
| OLD | NEW |