OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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. | |
4 | |
5 #ifndef CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_ | |
kkania
2013/04/06 17:17:52
how about rename this file capabilities.h, since i
chrisgao (Use stgao instead)
2013/04/08 08:26:56
Done. I had the same idea.
| |
6 #define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "base/callback_forward.h" | |
12 #include "base/command_line.h" | |
13 #include "base/files/file_path.h" | |
14 #include "base/memory/scoped_ptr.h" | |
15 | |
16 namespace base { | |
17 class DictionaryValue; | |
18 } | |
19 | |
20 class Status; | |
21 | |
22 struct Capabilities { | |
23 Capabilities(); | |
24 ~Capabilities(); | |
25 | |
26 // Return true if android package is specified. | |
27 bool IsAndroid() const; | |
28 | |
29 // |file_checker| is used to check if a file exists. | |
30 Status Parse( | |
31 const base::DictionaryValue& desired_caps, | |
32 const base::Callback<bool(const base::FilePath&)>& file_checker); | |
33 | |
34 std::string android_package; | |
35 | |
36 std::string log_path; | |
37 CommandLine command; | |
38 scoped_ptr<base::DictionaryValue> prefs; | |
39 scoped_ptr<base::DictionaryValue> local_state; | |
40 std::vector<std::string> extensions; | |
41 }; | |
42 | |
43 #endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_ | |
OLD | NEW |