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