Home
last modified time | relevance | path

Searched refs:DaemonController (Results 1 – 16 of 16) sorted by relevance

/external/chromium_org/remoting/host/setup/
Ddaemon_controller.cc20 DaemonController::DaemonController(scoped_ptr<Delegate> delegate) in DaemonController() function in remoting::DaemonController
35 DaemonController::State DaemonController::GetState() { in GetState()
40 void DaemonController::GetConfig(const GetConfigCallback& done) { in GetConfig()
43 DaemonController::GetConfigCallback wrapped_done = base::Bind( in GetConfig()
44 &DaemonController::InvokeConfigCallbackAndScheduleNext, this, done); in GetConfig()
46 &DaemonController::DoGetConfig, this, wrapped_done); in GetConfig()
50 void DaemonController::SetConfigAndStart( in SetConfigAndStart()
56 DaemonController::CompletionCallback wrapped_done = base::Bind( in SetConfigAndStart()
57 &DaemonController::InvokeCompletionCallbackAndScheduleNext, this, done); in SetConfigAndStart()
59 &DaemonController::DoSetConfigAndStart, this, base::Passed(&config), in SetConfigAndStart()
[all …]
Ddaemon_controller_delegate_linux.cc131 DaemonController::State DaemonControllerDelegateLinux::GetState() { in GetState()
139 return DaemonController::STATE_NOT_IMPLEMENTED; in GetState()
143 return DaemonController::STATE_STARTED; in GetState()
145 return DaemonController::STATE_STOPPED; in GetState()
152 if (GetState() != DaemonController::STATE_NOT_IMPLEMENTED) { in GetConfig()
173 const DaemonController::CompletionCallback& done) { in SetConfigAndStart()
183 done.Run(DaemonController::RESULT_FAILED); in SetConfigAndStart()
192 done.Run(DaemonController::RESULT_FAILED); in SetConfigAndStart()
201 done.Run(DaemonController::RESULT_FAILED); in SetConfigAndStart()
208 DaemonController::AsyncResult result = DaemonController::RESULT_FAILED; in SetConfigAndStart()
[all …]
Ddaemon_controller_delegate_win.cc65 DaemonController::State ConvertToDaemonState(DWORD service_state) { in ConvertToDaemonState()
68 return DaemonController::STATE_STARTED; in ConvertToDaemonState()
72 return DaemonController::STATE_STARTING; in ConvertToDaemonState()
77 return DaemonController::STATE_STOPPING; in ConvertToDaemonState()
82 return DaemonController::STATE_STOPPED; in ConvertToDaemonState()
87 return DaemonController::STATE_UNKNOWN; in ConvertToDaemonState()
118 DaemonController::AsyncResult HResultToAsyncResult( in HResultToAsyncResult()
121 return DaemonController::RESULT_OK; in HResultToAsyncResult()
123 return DaemonController::RESULT_CANCELLED; in HResultToAsyncResult()
127 return DaemonController::RESULT_FAILED; in HResultToAsyncResult()
[all …]
Ddaemon_controller_delegate_mac.h14 class DaemonControllerDelegateMac : public DaemonController::Delegate {
20 virtual DaemonController::State GetState() OVERRIDE;
25 const DaemonController::CompletionCallback& done) OVERRIDE;
28 const DaemonController::CompletionCallback& done) OVERRIDE;
29 virtual void Stop(const DaemonController::CompletionCallback& done) OVERRIDE;
32 virtual DaemonController::UsageStatsConsent GetUsageStatsConsent() OVERRIDE;
36 const DaemonController::CompletionCallback& done);
38 const DaemonController::CompletionCallback &done);
49 DaemonController::CompletionCallback current_callback_;
Ddaemon_controller_delegate_mac.mm40 DaemonController::State DaemonControllerDelegateMac::GetState() {
43 return DaemonController::STATE_NOT_INSTALLED;
46 return DaemonController::STATE_STOPPED;
48 return DaemonController::STATE_STARTED;
72 const DaemonController::CompletionCallback& done) {
81 const DaemonController::CompletionCallback& done) {
85 done.Run(DaemonController::RESULT_FAILED);
90 done.Run(DaemonController::RESULT_FAILED);
99 const DaemonController::CompletionCallback& done) {
132 DaemonController::UsageStatsConsent
[all …]
Ddaemon_controller_delegate_win.h19 class DaemonControllerDelegateWin : public DaemonController::Delegate {
25 virtual DaemonController::State GetState() OVERRIDE;
30 const DaemonController::CompletionCallback& done) OVERRIDE;
33 const DaemonController::CompletionCallback& done) OVERRIDE;
34 virtual void Stop(const DaemonController::CompletionCallback& done) OVERRIDE;
37 virtual DaemonController::UsageStatsConsent GetUsageStatsConsent() OVERRIDE;
56 const DaemonController::CompletionCallback& done,
Ddaemon_controller_delegate_linux.h13 class DaemonControllerDelegateLinux : public DaemonController::Delegate {
19 virtual DaemonController::State GetState() OVERRIDE;
24 const DaemonController::CompletionCallback& done) OVERRIDE;
27 const DaemonController::CompletionCallback& done) OVERRIDE;
28 virtual void Stop(const DaemonController::CompletionCallback& done) OVERRIDE;
31 virtual DaemonController::UsageStatsConsent GetUsageStatsConsent() OVERRIDE;
Dme2me_native_messaging_host_unittest.cc135 class MockDaemonControllerDelegate : public DaemonController::Delegate {
141 virtual DaemonController::State GetState() OVERRIDE;
146 const DaemonController::CompletionCallback& done) OVERRIDE;
149 const DaemonController::CompletionCallback& done) OVERRIDE;
150 virtual void Stop(const DaemonController::CompletionCallback& done) OVERRIDE;
153 virtual DaemonController::UsageStatsConsent GetUsageStatsConsent() OVERRIDE;
163 DaemonController::State MockDaemonControllerDelegate::GetState() { in GetState()
164 return DaemonController::STATE_STARTED; in GetState()
174 const DaemonController::CompletionCallback& done) { in SetConfigAndStart()
178 done.Run(DaemonController::RESULT_OK); in SetConfigAndStart()
[all …]
Ddaemon_controller.h25 class DaemonController : public base::RefCountedThreadSafe<DaemonController> {
157 static scoped_refptr<DaemonController> Create();
159 explicit DaemonController(scoped_ptr<Delegate> delegate);
214 friend class base::RefCountedThreadSafe<DaemonController>;
215 virtual ~DaemonController();
263 DISALLOW_COPY_AND_ASSIGN(DaemonController);
Dme2me_native_messaging_host.cc57 scoped_refptr<DaemonController> daemon_controller, in Me2MeNativeMessagingHost()
328 DaemonController::State state = daemon_controller_->GetState(); in ProcessGetDaemonState()
330 case DaemonController::STATE_NOT_IMPLEMENTED: in ProcessGetDaemonState()
333 case DaemonController::STATE_NOT_INSTALLED: in ProcessGetDaemonState()
336 case DaemonController::STATE_INSTALLING: in ProcessGetDaemonState()
339 case DaemonController::STATE_STOPPED: in ProcessGetDaemonState()
342 case DaemonController::STATE_STARTING: in ProcessGetDaemonState()
345 case DaemonController::STATE_STARTED: in ProcessGetDaemonState()
348 case DaemonController::STATE_STOPPING: in ProcessGetDaemonState()
351 case DaemonController::STATE_UNKNOWN: in ProcessGetDaemonState()
[all …]
Dme2me_native_messaging_host.h38 scoped_refptr<DaemonController> daemon_controller,
107 const DaemonController::UsageStatsConsent& consent);
109 DaemonController::AsyncResult result);
117 scoped_refptr<DaemonController> daemon_controller_;
Dhost_starter.cc23 scoped_refptr<remoting::DaemonController> daemon_controller) in HostStarter()
45 scoped_refptr<remoting::DaemonController> daemon_controller( in Create()
46 remoting::DaemonController::Create()); in Create()
175 void HostStarter::OnHostStarted(DaemonController::AsyncResult result) { in OnHostStarted()
181 if (result != DaemonController::RESULT_OK) { in OnHostStarted()
Dhost_starter.h72 scoped_refptr<remoting::DaemonController> daemon_controller);
76 void OnHostStarted(DaemonController::AsyncResult result);
80 scoped_refptr<remoting::DaemonController> daemon_controller_;
Dme2me_native_messaging_host_main.cc49 scoped_refptr<DaemonController> daemon_controller = in Me2MeNativeMessagingHostMain()
50 DaemonController::Create(); in Me2MeNativeMessagingHostMain()
/external/chromium_org/remoting/host/plugin/
Dhost_script_object.h211 DaemonController::AsyncResult result);
234 const DaemonController::UsageStatsConsent& consent);
292 scoped_refptr<DaemonController> daemon_controller_;
Dhost_script_object.cc109 daemon_controller_ = DaemonController::Create(); in HostNPScriptObject()
1006 DaemonController::AsyncResult result) { in InvokeAsyncResultCallback()
1065 const DaemonController::UsageStatsConsent& consent) { in InvokeGetUsageStatsConsentCallback()