Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7110)

Unified Diff: chrome/browser/printing/cloud_print/virtual_driver_install_helper.h

Issue 7485011: Virtual Cloud Print Driver for Mac. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed copyright Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..ff5c8453f4bcdbbc229526def6ee71bb2e82de64
--- /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.
+class VirtualDriverInstallHelper
+ : public base::RefCountedThreadSafe<VirtualDriverInstallHelper> {
+ 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();
+};
+
+} // namespace cloud_print
+
+#endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_VIRTUAL_DRIVER_INSTALL_HELPER_H_
+
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/printing/cloud_print/virtual_driver_install_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698