Chromium Code Reviews| 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..3390203be9a19b7e9a4664dea0fab08dea5988e4 100644 |
| --- a/remoting/host/plugin/host_script_object.h |
| +++ b/remoting/host/plugin/host_script_object.h |
| @@ -153,13 +153,26 @@ 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, |
|
Jamie
2012/06/14 23:43:56
Nit: Indentation.
alexeypa (please no reviews)
2012/06/19 23:27:29
Done.
|
| + NPVariant* result); |
| + |
| + // Stores the user's consent to report crash dumps. The first argument |
| + // is a boolean specifing whether the user allowed crash dump collection. |
| + bool SetUsageStatsConsent(const NPVariant* args, |
| + uint32_t arg_count, |
|
Jamie
2012/06/14 23:43:56
Nit: Indentation.
alexeypa (please no reviews)
2012/06/19 23:27:29
Done.
|
| + NPVariant* result); |
| + |
| // Start the daemon process with the specified config. Args are: |
| // string config |
| // function(number) done_callback |
| @@ -240,6 +253,11 @@ class HostNPScriptObject : public HostStatusObserver { |
| void InvokeGetDaemonVersionCallback(const ScopedRefNPObject& callback, |
| const std::string& version); |
| + // Callback handler for DaemonController::GetUsageStatsConsent(). |
| + void InvokeGetUsageStatsConsentCallback(const ScopedRefNPObject& callback, |
| + bool set_by_policy, |
| + bool allowed); |
| + |
| ////////////////////////////////////////////////////////// |
| // Basic helper methods used for both It2Me and Me2me. |