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 #include "remoting/host/daemon_process.h" | 5 #include "remoting/host/daemon_process.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 class DaemonProcessWin : public DaemonProcess { | 64 class DaemonProcessWin : public DaemonProcess { |
65 public: | 65 public: |
66 DaemonProcessWin( | 66 DaemonProcessWin( |
67 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, | 67 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, |
68 scoped_refptr<AutoThreadTaskRunner> io_task_runner, | 68 scoped_refptr<AutoThreadTaskRunner> io_task_runner, |
69 const base::Closure& stopped_callback); | 69 const base::Closure& stopped_callback); |
70 virtual ~DaemonProcessWin(); | 70 virtual ~DaemonProcessWin(); |
71 | 71 |
72 // WorkerProcessIpcDelegate implementation. | 72 // WorkerProcessIpcDelegate implementation. |
73 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 73 virtual void OnChannelConnected(int32 peer_pid) override; |
74 virtual void OnPermanentError(int exit_code) OVERRIDE; | 74 virtual void OnPermanentError(int exit_code) override; |
75 | 75 |
76 // DaemonProcess overrides. | 76 // DaemonProcess overrides. |
77 virtual void SendToNetwork(IPC::Message* message) OVERRIDE; | 77 virtual void SendToNetwork(IPC::Message* message) override; |
78 virtual bool OnDesktopSessionAgentAttached( | 78 virtual bool OnDesktopSessionAgentAttached( |
79 int terminal_id, | 79 int terminal_id, |
80 base::ProcessHandle desktop_process, | 80 base::ProcessHandle desktop_process, |
81 IPC::PlatformFileForTransit desktop_pipe) OVERRIDE; | 81 IPC::PlatformFileForTransit desktop_pipe) override; |
82 | 82 |
83 protected: | 83 protected: |
84 // DaemonProcess implementation. | 84 // DaemonProcess implementation. |
85 virtual scoped_ptr<DesktopSession> DoCreateDesktopSession( | 85 virtual scoped_ptr<DesktopSession> DoCreateDesktopSession( |
86 int terminal_id, | 86 int terminal_id, |
87 const ScreenResolution& resolution, | 87 const ScreenResolution& resolution, |
88 bool virtual_terminal) OVERRIDE; | 88 bool virtual_terminal) override; |
89 virtual void DoCrashNetworkProcess( | 89 virtual void DoCrashNetworkProcess( |
90 const tracked_objects::Location& location) OVERRIDE; | 90 const tracked_objects::Location& location) override; |
91 virtual void LaunchNetworkProcess() OVERRIDE; | 91 virtual void LaunchNetworkProcess() override; |
92 | 92 |
93 // Changes the service start type to 'manual'. | 93 // Changes the service start type to 'manual'. |
94 void DisableAutoStart(); | 94 void DisableAutoStart(); |
95 | 95 |
96 // Initializes the pairing registry on the host side by sending | 96 // Initializes the pairing registry on the host side by sending |
97 // ChromotingDaemonNetworkMsg_InitializePairingRegistry message. | 97 // ChromotingDaemonNetworkMsg_InitializePairingRegistry message. |
98 bool InitializePairingRegistry(); | 98 bool InitializePairingRegistry(); |
99 | 99 |
100 // Opens the pairing registry keys. | 100 // Opens the pairing registry keys. |
101 bool OpenPairingRegistry(); | 101 bool OpenPairingRegistry(); |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 << "\\" << kPairingRegistrySecretsKeyName; | 326 << "\\" << kPairingRegistrySecretsKeyName; |
327 return false; | 327 return false; |
328 } | 328 } |
329 | 329 |
330 pairing_registry_privileged_key_.Set(privileged.Take()); | 330 pairing_registry_privileged_key_.Set(privileged.Take()); |
331 pairing_registry_unprivileged_key_.Set(unprivileged.Take()); | 331 pairing_registry_unprivileged_key_.Set(unprivileged.Take()); |
332 return true; | 332 return true; |
333 } | 333 } |
334 | 334 |
335 } // namespace remoting | 335 } // namespace remoting |
OLD | NEW |