| 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 CLOUD_PRINT_SERVICE_SERVICE_CONTROLLER_H_ | 5 #ifndef CLOUD_PRINT_SERVICE_SERVICE_CONTROLLER_H_ |
| 6 #define CLOUD_PRINT_SERVICE_SERVICE_CONTROLLER_H_ | 6 #define CLOUD_PRINT_SERVICE_SERVICE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "cloud_print/service/win/resource.h" | 12 #include "cloud_print/resources.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class FilePath; | 15 class FilePath; |
| 16 } // base | 16 } // base |
| 17 | 17 |
| 18 class ServiceController { | 18 class ServiceController { |
| 19 public: | 19 public: |
| 20 DECLARE_REGISTRY_APPID_RESOURCEID(IDR_CLOUDPRINTSERVICE, | 20 DECLARE_REGISTRY_APPID_RESOURCEID(IDR_CLOUDPRINTSERVICE, |
| 21 "{8013FB7C-2E3E-4992-B8BD-05C0C4AB0627}") | 21 "{8013FB7C-2E3E-4992-B8BD-05C0C4AB0627}") |
| 22 | 22 |
| 23 explicit ServiceController(const string16& name); | 23 explicit ServiceController(const string16& name); |
| 24 ~ServiceController(); | 24 ~ServiceController(); |
| 25 | 25 |
| 26 HRESULT InstallService(const string16& user, | 26 HRESULT InstallService(const string16& user, |
| 27 const string16& password, | 27 const string16& password, |
| 28 const std::string& run_switch, | 28 const std::string& run_switch, |
| 29 const base::FilePath& user_data_dir, | 29 const base::FilePath& user_data_dir, |
| 30 bool auto_start); | 30 bool auto_start); |
| 31 | 31 |
| 32 HRESULT UninstallService(); | 32 HRESULT UninstallService(); |
| 33 | 33 |
| 34 HRESULT StartService(); | 34 HRESULT StartService(); |
| 35 HRESULT StopService(); | 35 HRESULT StopService(); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 const string16 name_; | 38 const string16 name_; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 #endif // CLOUD_PRINT_SERVICE_SERVICE_CONTROLLER_H_ | 41 #endif // CLOUD_PRINT_SERVICE_SERVICE_CONTROLLER_H_ |
| 42 | 42 |
| OLD | NEW |