Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_VIRTUAL_DRIVER_INSTALL_HELPER_H_ | |
| 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_VIRTUAL_DRIVER_INSTALL_HELPER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/memory/ref_counted.h" | |
| 11 #include "base/observer_list.h" | |
| 12 | |
| 13 namespace cloud_print { | |
| 14 | |
| 15 // Helper class to register the Cloud Print Driver with the service process | |
|
Nico
2011/08/01 21:31:12
trailing .
abeera
2011/08/02 01:21:02
Done.
| |
| 16 class VirtualDriverInstallHelper : | |
| 17 public base::RefCountedThreadSafe<VirtualDriverInstallHelper> { | |
|
Nico
2011/08/01 21:31:12
indent 2 more
abeera
2011/08/02 01:21:02
Done.
| |
| 18 public: | |
| 19 // Uses ServiceProcessControl to asynchronously get an instance | |
| 20 // of the Service Process, launching it if necessary, and register | |
| 21 // either InstallVirtualDriverTask or UninstallVirtualDriverTask as the | |
| 22 // Task to be called once we have an instance of the ServiceProcess. | |
| 23 static void SetUpInstall(); | |
| 24 static void SetUpUninstall(); | |
| 25 | |
| 26 private: | |
| 27 void InstallVirtualDriverTask(); | |
| 28 void UninstallVirtualDriverTask(); | |
| 29 | |
|
Nico
2011/08/01 21:31:12
no newline here
abeera
2011/08/02 01:21:02
Done.
| |
| 30 }; | |
| 31 | |
| 32 } // namespace cloud_print | |
| 33 | |
| 34 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_VIRTUAL_DRIVER_INSTALL_HELPER_H_ | |
| OLD | NEW |