OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_CAPABILITIES_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 14 matching lines...) Expand all Loading... |
25 class CommandLine; | 25 class CommandLine; |
26 class DictionaryValue; | 26 class DictionaryValue; |
27 } | 27 } |
28 | 28 |
29 class Status; | 29 class Status; |
30 | 30 |
31 class Switches { | 31 class Switches { |
32 public: | 32 public: |
33 typedef base::FilePath::StringType NativeString; | 33 typedef base::FilePath::StringType NativeString; |
34 Switches(); | 34 Switches(); |
| 35 Switches(const Switches& other); |
35 ~Switches(); | 36 ~Switches(); |
36 | 37 |
37 void SetSwitch(const std::string& name); | 38 void SetSwitch(const std::string& name); |
38 void SetSwitch(const std::string& name, const std::string& value); | 39 void SetSwitch(const std::string& name, const std::string& value); |
39 void SetSwitch(const std::string& name, const base::string16& value); | 40 void SetSwitch(const std::string& name, const base::string16& value); |
40 void SetSwitch(const std::string& name, const base::FilePath& value); | 41 void SetSwitch(const std::string& name, const base::FilePath& value); |
41 | 42 |
42 // In case of same key, |switches| will override. | 43 // In case of same key, |switches| will override. |
43 void SetFromSwitches(const Switches& switches); | 44 void SetFromSwitches(const Switches& switches); |
44 | 45 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 PerfLoggingPrefs perf_logging_prefs; | 145 PerfLoggingPrefs perf_logging_prefs; |
145 | 146 |
146 scoped_ptr<base::DictionaryValue> prefs; | 147 scoped_ptr<base::DictionaryValue> prefs; |
147 | 148 |
148 Switches switches; | 149 Switches switches; |
149 | 150 |
150 std::set<WebViewInfo::Type> window_types; | 151 std::set<WebViewInfo::Type> window_types; |
151 }; | 152 }; |
152 | 153 |
153 #endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ | 154 #endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ |
OLD | NEW |