summaryrefslogtreecommitdiffstats
path: root/cloud_print/service/win/chrome_launcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_print/service/win/chrome_launcher.h')
-rw-r--r--cloud_print/service/win/chrome_launcher.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/cloud_print/service/win/chrome_launcher.h b/cloud_print/service/win/chrome_launcher.h
new file mode 100644
index 0000000..8b98141
--- /dev/null
+++ b/cloud_print/service/win/chrome_launcher.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 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 CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_
+#define CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/file_path.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/threading/simple_thread.h"
+
+class ChromeLauncher : public base::DelegateSimpleThread::Delegate {
+ public:
+ explicit ChromeLauncher(const FilePath& user_data);
+
+ virtual ~ChromeLauncher();
+
+ bool Start();
+ void Stop();
+
+ virtual void Run() OVERRIDE;
+
+ static FilePath GetChromePath(HKEY key);
+
+ private:
+ FilePath user_data_;
+ base::WaitableEvent stop_event_;
+ scoped_ptr<base::DelegateSimpleThread> thread_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeLauncher);
+};
+
+#endif // CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_
+