Chromium Code Reviews| Index: remoting/host/plugin/daemon_controller.h |
| diff --git a/remoting/host/plugin/daemon_controller.h b/remoting/host/plugin/daemon_controller.h |
| index 04fde56b786391276c6fb571a56475a03cd7138b..88a4f4a88a2786e14f6c97e94894e330a6804a52 100644 |
| --- a/remoting/host/plugin/daemon_controller.h |
| +++ b/remoting/host/plugin/daemon_controller.h |
| @@ -79,6 +79,9 @@ class DaemonController { |
| // Callback type for GetVersion(). |
| typedef base::Callback<void (const std::string&)> GetVersionCallback; |
| + // Callback type for GetUsageStatsConsent(). |
| + typedef base::Callback<void (bool, bool)> GetUsageStatsConsentCallback; |
| + |
| virtual ~DaemonController() {} |
| // Return the "installed/running" state of the daemon process. |
| @@ -129,6 +132,13 @@ class DaemonController { |
| // major.minor.build.patch, if it is installed, or "" otherwise. |
| virtual void GetVersion(const GetVersionCallback& done_callback) = 0; |
| + // Get the user's consent to crash reporting. |
| + virtual void GetUsageStatsConsent( |
| + const GetUsageStatsConsentCallback& callback) = 0; |
|
Jamie
2012/06/14 23:43:56
There's no provision here for returning "unsupport
alexeypa (please no reviews)
2012/06/19 23:27:29
Done.
|
| + |
| + // Set the user's consent to crash reporting. |
| + virtual void SetUsageStatsConsent(bool consent) = 0; |
| + |
| static scoped_ptr<DaemonController> Create(); |
| }; |