Automate more Better Session Restore Tests: POST data with passwords.
[chromium-blink-merge.git] / cloud_print / service / win / chrome_launcher.h
blobbc257ff5e6141010764a9a60e9d65577c1df5eca
1 // Copyright (c) 2012 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.
5 #ifndef CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_
6 #define CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/file_path.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/threading/simple_thread.h"
15 class ChromeLauncher : public base::DelegateSimpleThread::Delegate {
16 public:
17 explicit ChromeLauncher(const FilePath& user_data);
19 virtual ~ChromeLauncher();
21 bool Start();
22 void Stop();
24 virtual void Run() OVERRIDE;
26 private:
27 FilePath user_data_;
28 base::WaitableEvent stop_event_;
29 scoped_ptr<base::DelegateSimpleThread> thread_;
31 DISALLOW_COPY_AND_ASSIGN(ChromeLauncher);
34 #endif // CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_