| 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_MAC_H_ | 5 #ifndef REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_ |
| 6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_ | 6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "remoting/host/setup/daemon_controller.h" | 10 #include "remoting/host/setup/daemon_controller.h" |
| 11 | 11 |
| 12 namespace remoting { | 12 namespace remoting { |
| 13 | 13 |
| 14 class DaemonControllerDelegateMac : public DaemonController::Delegate { | 14 class DaemonControllerDelegateMac : public DaemonController::Delegate { |
| 15 public: | 15 public: |
| 16 DaemonControllerDelegateMac(); | 16 DaemonControllerDelegateMac(); |
| 17 ~DaemonControllerDelegateMac() override; | 17 ~DaemonControllerDelegateMac() override; |
| 18 | 18 |
| 19 // DaemonController::Delegate interface. | 19 // DaemonController::Delegate interface. |
| 20 DaemonController::State GetState() override; | 20 DaemonController::State GetState() override; |
| 21 scoped_ptr<base::DictionaryValue> GetConfig() override; | 21 scoped_ptr<base::DictionaryValue> GetConfig() override; |
| 22 void InstallHost(const DaemonController::CompletionCallback& done) override; | |
| 23 void SetConfigAndStart( | 22 void SetConfigAndStart( |
| 24 scoped_ptr<base::DictionaryValue> config, | 23 scoped_ptr<base::DictionaryValue> config, |
| 25 bool consent, | 24 bool consent, |
| 26 const DaemonController::CompletionCallback& done) override; | 25 const DaemonController::CompletionCallback& done) override; |
| 27 void UpdateConfig(scoped_ptr<base::DictionaryValue> config, | 26 void UpdateConfig(scoped_ptr<base::DictionaryValue> config, |
| 28 const DaemonController::CompletionCallback& done) override; | 27 const DaemonController::CompletionCallback& done) override; |
| 29 void Stop(const DaemonController::CompletionCallback& done) override; | 28 void Stop(const DaemonController::CompletionCallback& done) override; |
| 30 void SetWindow(void* window_handle) override; | 29 void SetWindow(void* window_handle) override; |
| 31 std::string GetVersion() override; | 30 std::string GetVersion() override; |
| 32 DaemonController::UsageStatsConsent GetUsageStatsConsent() override; | 31 DaemonController::UsageStatsConsent GetUsageStatsConsent() override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 47 CFDictionaryRef user_info); | 46 CFDictionaryRef user_info); |
| 48 | 47 |
| 49 DaemonController::CompletionCallback current_callback_; | 48 DaemonController::CompletionCallback current_callback_; |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(DaemonControllerDelegateMac); | 50 DISALLOW_COPY_AND_ASSIGN(DaemonControllerDelegateMac); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace remoting | 53 } // namespace remoting |
| 55 | 54 |
| 56 #endif // REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_ | 55 #endif // REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_ |
| OLD | NEW |