OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 | 9 |
10 class Chrome; | 10 class Chrome; |
| 11 class Status; |
| 12 |
| 13 namespace base { |
11 class FilePath; | 14 class FilePath; |
12 class Status; | 15 } |
13 | 16 |
14 // Launches Chrome. Must be thread safe. | 17 // Launches Chrome. Must be thread safe. |
15 class ChromeLauncher { | 18 class ChromeLauncher { |
16 public: | 19 public: |
17 virtual ~ChromeLauncher() {} | 20 virtual ~ChromeLauncher() {} |
18 | 21 |
19 // Launches Chrome found at the given path. If the path | 22 // Launches Chrome found at the given path. If the path |
20 // is empty, the default Chrome binary is to be used. | 23 // is empty, the default Chrome binary is to be used. |
21 virtual Status Launch(const FilePath& chrome_exe, | 24 virtual Status Launch(const base::FilePath& chrome_exe, |
22 scoped_ptr<Chrome>* chrome) = 0; | 25 scoped_ptr<Chrome>* chrome) = 0; |
23 }; | 26 }; |
24 | 27 |
25 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ | 28 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ |
OLD | NEW |