| 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_CONTROLLER_H_ | 5 #ifndef REMOTING_HOST_DAEMON_CONTROLLER_H_ |
| 6 #define REMOTING_HOST_DAEMON_CONTROLLER_H_ | 6 #define REMOTING_HOST_DAEMON_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const CompletionCallback& done_callback) = 0; | 109 const CompletionCallback& done_callback) = 0; |
| 110 | 110 |
| 111 // Stop the daemon process. It is permitted to call Stop while the daemon | 111 // Stop the daemon process. It is permitted to call Stop while the daemon |
| 112 // process is being installed, in which case the installation should be | 112 // process is being installed, in which case the installation should be |
| 113 // aborted if possible; if not then it is sufficient to ensure that the | 113 // aborted if possible; if not then it is sufficient to ensure that the |
| 114 // daemon process is not started automatically upon successful installation. | 114 // daemon process is not started automatically upon successful installation. |
| 115 // As with Start, Stop may return before the operation is complete--poll | 115 // As with Start, Stop may return before the operation is complete--poll |
| 116 // GetState until the state is STATE_STOPPED. | 116 // GetState until the state is STATE_STOPPED. |
| 117 virtual void Stop(const CompletionCallback& done_callback) = 0; | 117 virtual void Stop(const CompletionCallback& done_callback) = 0; |
| 118 | 118 |
| 119 // Caches the native handle of the plugin window so it can be used to focus |
| 120 // elevation prompts properly. |
| 121 virtual void SetWindow(void* window_handle) = 0; |
| 122 |
| 119 static scoped_ptr<DaemonController> Create(); | 123 static scoped_ptr<DaemonController> Create(); |
| 120 }; | 124 }; |
| 121 | 125 |
| 122 } // namespace remoting | 126 } // namespace remoting |
| 123 | 127 |
| 124 #endif // REMOTING_HOST_DAEMON_CONTROLLER_H_ | 128 #endif // REMOTING_HOST_DAEMON_CONTROLLER_H_ |
| OLD | NEW |