| 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; | |
| 23 class ChannelProxy; | 22 class ChannelProxy; |
| 24 } // namespace IPC | 23 } // namespace IPC |
| 25 | 24 |
| 26 namespace remoting { | 25 namespace remoting { |
| 27 | 26 |
| 28 class AutoThreadTaskRunner; | 27 class AutoThreadTaskRunner; |
| 29 class DesktopEnvironment; | 28 class DesktopEnvironment; |
| 30 class DesktopEnvironmentFactory; | 29 class DesktopEnvironmentFactory; |
| 31 class DesktopSessionAgent; | 30 class DesktopSessionAgent; |
| 32 | 31 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Used to run input-related tasks. | 69 // Used to run input-related tasks. |
| 71 scoped_refptr<AutoThreadTaskRunner> input_task_runner_; | 70 scoped_refptr<AutoThreadTaskRunner> input_task_runner_; |
| 72 | 71 |
| 73 // Factory used to create integration components for use by |desktop_agent_|. | 72 // Factory used to create integration components for use by |desktop_agent_|. |
| 74 scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory_; | 73 scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory_; |
| 75 | 74 |
| 76 // Name of the IPC channel connecting the desktop process with the daemon | 75 // Name of the IPC channel connecting the desktop process with the daemon |
| 77 // process. | 76 // process. |
| 78 std::string daemon_channel_name_; | 77 std::string daemon_channel_name_; |
| 79 | 78 |
| 80 // Attachment broker for |daemon_channel_|. | |
| 81 scoped_ptr<IPC::AttachmentBrokerUnprivileged> attachment_broker_; | |
| 82 | |
| 83 // IPC channel connecting the desktop process with the daemon process. | 79 // IPC channel connecting the desktop process with the daemon process. |
| 84 scoped_ptr<IPC::ChannelProxy> daemon_channel_; | 80 scoped_ptr<IPC::ChannelProxy> daemon_channel_; |
| 85 | 81 |
| 86 // Provides screen/audio capturing and input injection services for | 82 // Provides screen/audio capturing and input injection services for |
| 87 // the network process. | 83 // the network process. |
| 88 scoped_refptr<DesktopSessionAgent> desktop_agent_; | 84 scoped_refptr<DesktopSessionAgent> desktop_agent_; |
| 89 | 85 |
| 90 DISALLOW_COPY_AND_ASSIGN(DesktopProcess); | 86 DISALLOW_COPY_AND_ASSIGN(DesktopProcess); |
| 91 }; | 87 }; |
| 92 | 88 |
| 93 } // namespace remoting | 89 } // namespace remoting |
| 94 | 90 |
| 95 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_ | 91 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_ |
| OLD | NEW |