| Index: remoting/host/plugin/host_script_object.h
|
| diff --git a/remoting/host/plugin/host_script_object.h b/remoting/host/plugin/host_script_object.h
|
| index d121266f8d9be66d2971900696e33811fc53e338..9e7110e0d0ddaeb55b62c1b8303c2ce3f5e01735 100644
|
| --- a/remoting/host/plugin/host_script_object.h
|
| +++ b/remoting/host/plugin/host_script_object.h
|
| @@ -153,13 +153,20 @@ class HostNPScriptObject : public HostStatusObserver {
|
| uint32_t arg_count,
|
| NPVariant* result);
|
|
|
| - // Loads daemon config version. The first argument specifies the
|
| - // callback to be called with the config is loaded. The version is
|
| + // Retrieves daemon config version. The first argument specifies the
|
| + // callback to be called with the obtained version. The version is
|
| // returned as a dotted version string, described in daemon_controller.h.
|
| bool GetDaemonVersion(const NPVariant* args,
|
| uint32_t arg_count,
|
| NPVariant* result);
|
|
|
| + // Retrieves the user's consent to report crash dumps. The first argument
|
| + // specifies the callback to be called with the recorder consent. Possible
|
| + // consent codes are defined in remoting/host/breakpad.h.
|
| + bool GetUsageStatsConsent(const NPVariant* args,
|
| + uint32_t arg_count,
|
| + NPVariant* result);
|
| +
|
| // Start the daemon process with the specified config. Args are:
|
| // string config
|
| // function(number) done_callback
|
| @@ -227,8 +234,8 @@ class HostNPScriptObject : public HostStatusObserver {
|
| const std::string& public_key);
|
|
|
|
|
| - // Callback handler for SetConfigAndStart(), Stop() and SetPin() in
|
| - // DaemonController.
|
| + // Callback handler for SetConfigAndStart(), Stop(), SetPin() and
|
| + // SetUsageStatsConsent() in DaemonController.
|
| void InvokeAsyncResultCallback(const ScopedRefNPObject& callback,
|
| DaemonController::AsyncResult result);
|
|
|
| @@ -240,6 +247,12 @@ class HostNPScriptObject : public HostStatusObserver {
|
| void InvokeGetDaemonVersionCallback(const ScopedRefNPObject& callback,
|
| const std::string& version);
|
|
|
| + // Callback handler for DaemonController::GetUsageStatsConsent().
|
| + void InvokeGetUsageStatsConsentCallback(const ScopedRefNPObject& callback,
|
| + bool supported,
|
| + bool allowed,
|
| + bool set_by_policy);
|
| +
|
| //////////////////////////////////////////////////////////
|
| // Basic helper methods used for both It2Me and Me2me.
|
|
|
|
|