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_
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"
18 class ChromeLauncher
: public base::DelegateSimpleThread::Delegate
{
20 explicit ChromeLauncher(const base::FilePath
& user_data
);
22 virtual ~ChromeLauncher();
27 virtual void Run() OVERRIDE
;
29 static std::string
CreateServiceStateFile(
30 const std::string
& proxy_id
,
31 const std::vector
<std::string
>& printers
);
34 base::FilePath user_data_
;
35 base::WaitableEvent stop_event_
;
36 scoped_ptr
<base::DelegateSimpleThread
> thread_
;
38 DISALLOW_COPY_AND_ASSIGN(ChromeLauncher
);
41 #endif // CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_