| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_ | 5 #ifndef REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_ |
| 6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_ | 6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "remoting/host/setup/daemon_controller.h" | 10 #include "remoting/host/setup/daemon_controller.h" |
| 10 | 11 |
| 11 namespace remoting { | 12 namespace remoting { |
| 12 | 13 |
| 13 class DaemonControllerDelegateLinux : public DaemonController::Delegate { | 14 class DaemonControllerDelegateLinux : public DaemonController::Delegate { |
| 14 public: | 15 public: |
| 15 DaemonControllerDelegateLinux(); | 16 DaemonControllerDelegateLinux(); |
| 16 ~DaemonControllerDelegateLinux() override; | 17 ~DaemonControllerDelegateLinux() override; |
| 17 | 18 |
| 18 // DaemonController::Delegate interface. | 19 // DaemonController::Delegate interface. |
| 19 DaemonController::State GetState() override; | 20 DaemonController::State GetState() override; |
| 20 scoped_ptr<base::DictionaryValue> GetConfig() override; | 21 scoped_ptr<base::DictionaryValue> GetConfig() override; |
| 21 void SetConfigAndStart( | 22 void SetConfigAndStart( |
| 22 scoped_ptr<base::DictionaryValue> config, | 23 scoped_ptr<base::DictionaryValue> config, |
| 23 bool consent, | 24 bool consent, |
| 24 const DaemonController::CompletionCallback& done) override; | 25 const DaemonController::CompletionCallback& done) override; |
| 25 void UpdateConfig(scoped_ptr<base::DictionaryValue> config, | 26 void UpdateConfig(scoped_ptr<base::DictionaryValue> config, |
| 26 const DaemonController::CompletionCallback& done) override; | 27 const DaemonController::CompletionCallback& done) override; |
| 27 void Stop(const DaemonController::CompletionCallback& done) override; | 28 void Stop(const DaemonController::CompletionCallback& done) override; |
| 28 DaemonController::UsageStatsConsent GetUsageStatsConsent() override; | 29 DaemonController::UsageStatsConsent GetUsageStatsConsent() override; |
| 29 | 30 |
| 30 private: | 31 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(DaemonControllerDelegateLinux); | 32 DISALLOW_COPY_AND_ASSIGN(DaemonControllerDelegateLinux); |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 } // namespace remoting | 35 } // namespace remoting |
| 35 | 36 |
| 36 #endif // REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_ | 37 #endif // REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_ |
| OLD | NEW |