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