Revert of Fix missing GN dependencies. (patchset #4 id:60001 of https://codereview...
[chromium-blink-merge.git] / cloud_print / service / win / chrome_launcher.h
blob189bbc740c2c87bae92866e59e4d4de52fbd6ec3
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>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "base/files/file_path.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/threading/simple_thread.h"
16 class ChromeLauncher : public base::DelegateSimpleThread::Delegate {
17 public:
18 explicit ChromeLauncher(const base::FilePath& user_data);
20 ~ChromeLauncher() override;
22 bool Start();
23 void Stop();
25 // base::DelegateSimpleThread::Delegate:
26 void Run() override;
28 static std::string CreateServiceStateFile(
29 const std::string& proxy_id,
30 const std::vector<std::string>& printers);
32 private:
33 base::FilePath user_data_;
34 base::WaitableEvent stop_event_;
35 scoped_ptr<base::DelegateSimpleThread> thread_;
37 DISALLOW_COPY_AND_ASSIGN(ChromeLauncher);
40 #endif // CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_