Chromium Code Reviews| Index: chrome/browser/printing/cloud_print/virtual_driver_install_helper.h |
| diff --git a/chrome/browser/printing/cloud_print/virtual_driver_install_helper.h b/chrome/browser/printing/cloud_print/virtual_driver_install_helper.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..979c4b315fca7fa870e95b4e6614c535745da27e |
| --- /dev/null |
| +++ b/chrome/browser/printing/cloud_print/virtual_driver_install_helper.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_VIRTUAL_DRIVER_INSTALL_HELPER_H_ |
| +#define CHROME_BROWSER_PRINTING_CLOUD_PRINT_VIRTUAL_DRIVER_INSTALL_HELPER_H_ |
| +#pragma once |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "base/observer_list.h" |
| + |
| +namespace cloud_print { |
| + |
| +// 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.
|
| +class VirtualDriverInstallHelper : |
| + public base::RefCountedThreadSafe<VirtualDriverInstallHelper> { |
|
Nico
2011/08/01 21:31:12
indent 2 more
abeera
2011/08/02 01:21:02
Done.
|
| + public: |
| + // Uses ServiceProcessControl to asynchronously get an instance |
| + // of the Service Process, launching it if necessary, and register |
| + // either InstallVirtualDriverTask or UninstallVirtualDriverTask as the |
| + // Task to be called once we have an instance of the ServiceProcess. |
| + static void SetUpInstall(); |
| + static void SetUpUninstall(); |
| + |
| + private: |
| + void InstallVirtualDriverTask(); |
| + void UninstallVirtualDriverTask(); |
| + |
|
Nico
2011/08/01 21:31:12
no newline here
abeera
2011/08/02 01:21:02
Done.
|
| +}; |
| + |
| +} // namespace cloud_print |
| + |
| +#endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_VIRTUAL_DRIVER_INSTALL_HELPER_H_ |