| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBDRIVER_WEBDRIVER_CAPABILITIES_PARSER_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_CAPABILITIES_PARSER_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_CAPABILITIES_PARSER_H_ | 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_CAPABILITIES_PARSER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 Error* ParseLoadAsync(const base::Value* option); | 92 Error* ParseLoadAsync(const base::Value* option); |
| 93 Error* ParseLoggingPrefs(const base::Value* option); | 93 Error* ParseLoggingPrefs(const base::Value* option); |
| 94 Error* ParseNativeEvents(const base::Value* option); | 94 Error* ParseNativeEvents(const base::Value* option); |
| 95 Error* ParseNoProxy(const base::Value* option); | 95 Error* ParseNoProxy(const base::Value* option); |
| 96 Error* ParseProfile(const base::Value* option); | 96 Error* ParseProfile(const base::Value* option); |
| 97 Error* ParseProxy(const base::Value* option); | 97 Error* ParseProxy(const base::Value* option); |
| 98 Error* ParseProxyAutoDetect(const base::DictionaryValue* options); | 98 Error* ParseProxyAutoDetect(const base::DictionaryValue* options); |
| 99 Error* ParseProxyAutoconfigUrl(const base::DictionaryValue* options); | 99 Error* ParseProxyAutoconfigUrl(const base::DictionaryValue* options); |
| 100 Error* ParseProxyServers(const base::DictionaryValue* options); | 100 Error* ParseProxyServers(const base::DictionaryValue* options); |
| 101 Error* ParseNoWebsiteTestingDefaults(const base::Value* option); | 101 Error* ParseNoWebsiteTestingDefaults(const base::Value* option); |
| 102 // Decodes the given base64-encoded string, optionally unzips it, and | |
| 103 // writes the result to |path|. | |
| 104 // On error, false will be returned and |error_msg| will be set. | |
| 105 bool DecodeAndWriteFile(const FilePath& path, | |
| 106 const std::string& base64, | |
| 107 bool unzip, | |
| 108 std::string* error_msg); | |
| 109 | 102 |
| 110 // The capabilities dictionary to parse. | 103 // The capabilities dictionary to parse. |
| 111 const base::DictionaryValue* dict_; | 104 const base::DictionaryValue* dict_; |
| 112 | 105 |
| 113 // The root directory under which to write all files. | 106 // The root directory under which to write all files. |
| 114 const FilePath root_; | 107 const FilePath root_; |
| 115 | 108 |
| 116 // Reference to the logger to use. | 109 // Reference to the logger to use. |
| 117 const Logger& logger_; | 110 const Logger& logger_; |
| 118 | 111 |
| 119 // A pointer to the capabilities to modify while parsing. | 112 // A pointer to the capabilities to modify while parsing. |
| 120 Capabilities* caps_; | 113 Capabilities* caps_; |
| 121 | 114 |
| 122 DISALLOW_COPY_AND_ASSIGN(CapabilitiesParser); | 115 DISALLOW_COPY_AND_ASSIGN(CapabilitiesParser); |
| 123 }; | 116 }; |
| 124 | 117 |
| 125 } // namespace webdriver | 118 } // namespace webdriver |
| 126 | 119 |
| 127 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_CAPABILITIES_PARSER_H_ | 120 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_CAPABILITIES_PARSER_H_ |
| OLD | NEW |