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_DAEMON_PROCESS_H_ | 5 #ifndef REMOTING_HOST_DAEMON_PROCESS_H_ |
6 #define REMOTING_HOST_DAEMON_PROCESS_H_ | 6 #define REMOTING_HOST_DAEMON_PROCESS_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual void OnConfigUpdated(const std::string& serialized_config) OVERRIDE; | 60 virtual void OnConfigUpdated(const std::string& serialized_config) OVERRIDE; |
61 virtual void OnConfigWatcherError() OVERRIDE; | 61 virtual void OnConfigWatcherError() OVERRIDE; |
62 | 62 |
63 // HostStatusMonitor interface. | 63 // HostStatusMonitor interface. |
64 virtual void AddStatusObserver(HostStatusObserver* observer) OVERRIDE; | 64 virtual void AddStatusObserver(HostStatusObserver* observer) OVERRIDE; |
65 virtual void RemoveStatusObserver(HostStatusObserver* observer) OVERRIDE; | 65 virtual void RemoveStatusObserver(HostStatusObserver* observer) OVERRIDE; |
66 | 66 |
67 // WorkerProcessIpcDelegate implementation. | 67 // WorkerProcessIpcDelegate implementation. |
68 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 68 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
69 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 69 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
70 virtual void OnPermanentError() OVERRIDE; | 70 virtual void OnPermanentError(int exit_code) OVERRIDE; |
71 | 71 |
72 // Sends an IPC message to the network process. The message will be dropped | 72 // Sends an IPC message to the network process. The message will be dropped |
73 // unless the network process is connected over the IPC channel. | 73 // unless the network process is connected over the IPC channel. |
74 virtual void SendToNetwork(IPC::Message* message) = 0; | 74 virtual void SendToNetwork(IPC::Message* message) = 0; |
75 | 75 |
76 // Called when a desktop integration process attaches to |terminal_id|. | 76 // Called when a desktop integration process attaches to |terminal_id|. |
77 // |desktop_process| is a handle of the desktop integration process. | 77 // |desktop_process| is a handle of the desktop integration process. |
78 // |desktop_pipe| specifies the client end of the desktop pipe. Returns true | 78 // |desktop_pipe| specifies the client end of the desktop pipe. Returns true |
79 // on success, false otherwise. | 79 // on success, false otherwise. |
80 virtual bool OnDesktopSessionAgentAttached( | 80 virtual bool OnDesktopSessionAgentAttached( |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 scoped_ptr<HostEventLogger> host_event_logger_; | 183 scoped_ptr<HostEventLogger> host_event_logger_; |
184 | 184 |
185 base::WeakPtrFactory<DaemonProcess> weak_factory_; | 185 base::WeakPtrFactory<DaemonProcess> weak_factory_; |
186 | 186 |
187 DISALLOW_COPY_AND_ASSIGN(DaemonProcess); | 187 DISALLOW_COPY_AND_ASSIGN(DaemonProcess); |
188 }; | 188 }; |
189 | 189 |
190 } // namespace remoting | 190 } // namespace remoting |
191 | 191 |
192 #endif // REMOTING_HOST_DAEMON_PROCESS_H_ | 192 #endif // REMOTING_HOST_DAEMON_PROCESS_H_ |
OLD | NEW |