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_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 5 #ifndef REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 uint32_t arg_count, | 138 uint32_t arg_count, |
139 NPVariant* result); | 139 NPVariant* result); |
140 | 140 |
141 // Retrieves the user's consent to report crash dumps. The first argument | 141 // Retrieves the user's consent to report crash dumps. The first argument |
142 // specifies the callback to be called with the recorder consent. Possible | 142 // specifies the callback to be called with the recorder consent. Possible |
143 // consent codes are defined in remoting/host/breakpad.h. | 143 // consent codes are defined in remoting/host/breakpad.h. |
144 bool GetUsageStatsConsent(const NPVariant* args, | 144 bool GetUsageStatsConsent(const NPVariant* args, |
145 uint32_t arg_count, | 145 uint32_t arg_count, |
146 NPVariant* result); | 146 NPVariant* result); |
147 | 147 |
| 148 // Download and install the host component. |
| 149 // function(number) done_callback |
| 150 bool InstallHost(const NPVariant* args, |
| 151 uint32_t arg_count, |
| 152 NPVariant* result); |
| 153 |
148 // Start the daemon process with the specified config. Args are: | 154 // Start the daemon process with the specified config. Args are: |
149 // string config | 155 // string config |
150 // function(number) done_callback | 156 // function(number) done_callback |
151 bool StartDaemon(const NPVariant* args, | 157 bool StartDaemon(const NPVariant* args, |
152 uint32_t arg_count, | 158 uint32_t arg_count, |
153 NPVariant* result); | 159 NPVariant* result); |
154 | 160 |
155 // Stop the daemon process. Args are: | 161 // Stop the daemon process. Args are: |
156 // function(number) done_callback | 162 // function(number) done_callback |
157 bool StopDaemon(const NPVariant* args, uint32_t arg_count, NPVariant* result); | 163 bool StopDaemon(const NPVariant* args, uint32_t arg_count, NPVariant* result); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // Used to cancel pending tasks for this object when it is destroyed. | 311 // Used to cancel pending tasks for this object when it is destroyed. |
306 base::WeakPtr<HostNPScriptObject> weak_ptr_; | 312 base::WeakPtr<HostNPScriptObject> weak_ptr_; |
307 base::WeakPtrFactory<HostNPScriptObject> weak_factory_; | 313 base::WeakPtrFactory<HostNPScriptObject> weak_factory_; |
308 | 314 |
309 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject); | 315 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject); |
310 }; | 316 }; |
311 | 317 |
312 } // namespace remoting | 318 } // namespace remoting |
313 | 319 |
314 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 320 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
OLD | NEW |