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_FINDER_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_FINDER_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_FINDER_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_FINDER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 | 11 |
| 12 namespace base { |
12 class FilePath; | 13 class FilePath; |
| 14 } |
13 | 15 |
14 // Gets the path to the default Chrome executable. Returns true on success. | 16 // Gets the path to the default Chrome executable. Returns true on success. |
15 bool FindChrome(FilePath* browser_exe); | 17 bool FindChrome(base::FilePath* browser_exe); |
16 | 18 |
17 namespace internal { | 19 namespace internal { |
18 | 20 |
19 bool FindExe( | 21 bool FindExe( |
20 const base::Callback<bool(const FilePath&)>& exists_func, | 22 const base::Callback<bool(const base::FilePath&)>& exists_func, |
21 const std::vector<FilePath>& rel_paths, | 23 const std::vector<base::FilePath>& rel_paths, |
22 const std::vector<FilePath>& locations, | 24 const std::vector<base::FilePath>& locations, |
23 FilePath* out_path); | 25 base::FilePath* out_path); |
24 | 26 |
25 } // namespace internal | 27 } // namespace internal |
26 | 28 |
27 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_FINDER_H_ | 29 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_FINDER_H_ |
OLD | NEW |