| 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 TOOLS_ANDROID_FORWARDER2_DAEMON_H_ | 5 #ifndef TOOLS_ANDROID_FORWARDER2_DAEMON_H_ |
| 6 #define TOOLS_ANDROID_FORWARDER2_DAEMON_H_ | 6 #define TOOLS_ANDROID_FORWARDER2_DAEMON_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 | 12 |
| 13 namespace forwarder2 { | 13 namespace forwarder2 { |
| 14 | 14 |
| 15 class Socket; | 15 class Socket; |
| 16 | 16 |
| 17 // Provides a way to spawn a daemon and communicate with it. | 17 // Provides a way to spawn a daemon and communicate with it. |
| 18 class Daemon { | 18 class Daemon { |
| 19 public: | 19 public: |
| 20 // Callback used by the daemon to shutdown properly. See pipe_notifier.h for | 20 // Callback used by the daemon to shutdown properly. See pipe_notifier.h for |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ClientDelegate* const client_delegate_; | 66 ClientDelegate* const client_delegate_; |
| 67 ServerDelegate* const server_delegate_; | 67 ServerDelegate* const server_delegate_; |
| 68 const GetExitNotifierFDCallback get_exit_fd_callback_; | 68 const GetExitNotifierFDCallback get_exit_fd_callback_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(Daemon); | 70 DISALLOW_COPY_AND_ASSIGN(Daemon); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace forwarder2 | 73 } // namespace forwarder2 |
| 74 | 74 |
| 75 #endif // TOOLS_ANDROID_FORWARDER2_DAEMON_H_ | 75 #endif // TOOLS_ANDROID_FORWARDER2_DAEMON_H_ |
| OLD | NEW |