| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 39 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 40 const base::Closure& stopped_callback); | 40 const base::Closure& stopped_callback); |
| 41 | 41 |
| 42 // ConfigFileWatcher::Delegate | 42 // ConfigFileWatcher::Delegate |
| 43 virtual void OnConfigUpdated(const std::string& serialized_config) OVERRIDE; | 43 virtual void OnConfigUpdated(const std::string& serialized_config) OVERRIDE; |
| 44 virtual void OnConfigWatcherError() OVERRIDE; | 44 virtual void OnConfigWatcherError() OVERRIDE; |
| 45 | 45 |
| 46 // WorkerProcessIpcDelegate implementation. | 46 // WorkerProcessIpcDelegate implementation. |
| 47 virtual void OnChannelConnected() OVERRIDE; | 47 virtual void OnChannelConnected() OVERRIDE; |
| 48 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 48 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 49 virtual void OnPermanentError() OVERRIDE; |
| 49 | 50 |
| 50 // Sends an IPC message to the network process. The message will be dropped | 51 // Sends an IPC message to the network process. The message will be dropped |
| 51 // unless the network process is connected over the IPC channel. | 52 // unless the network process is connected over the IPC channel. |
| 52 virtual void Send(IPC::Message* message) = 0; | 53 virtual void Send(IPC::Message* message) = 0; |
| 53 | 54 |
| 54 protected: | 55 protected: |
| 55 DaemonProcess(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 56 DaemonProcess(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 56 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 57 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 57 const base::Closure& stopped_callback); | 58 const base::Closure& stopped_callback); |
| 58 | 59 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 84 | 85 |
| 85 // Handles IPC and background I/O tasks. | 86 // Handles IPC and background I/O tasks. |
| 86 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 87 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
| 87 | 88 |
| 88 DISALLOW_COPY_AND_ASSIGN(DaemonProcess); | 89 DISALLOW_COPY_AND_ASSIGN(DaemonProcess); |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace remoting | 92 } // namespace remoting |
| 92 | 93 |
| 93 #endif // REMOTING_HOST_DAEMON_PROCESS_H_ | 94 #endif // REMOTING_HOST_DAEMON_PROCESS_H_ |
| OLD | NEW |