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_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 325 |
326 // Requests that the given extension be installed. If |with_ui| is false, | 326 // Requests that the given extension be installed. If |with_ui| is false, |
327 // the extension will be installed silently. Returns true on success. | 327 // the extension will be installed silently. Returns true on success. |
328 bool SendInstallExtensionJSONRequest( | 328 bool SendInstallExtensionJSONRequest( |
329 AutomationMessageSender* sender, | 329 AutomationMessageSender* sender, |
330 const FilePath& path, | 330 const FilePath& path, |
331 bool with_ui, | 331 bool with_ui, |
332 std::string* extension_id, | 332 std::string* extension_id, |
333 std::string* error_msg) WARN_UNUSED_RESULT; | 333 std::string* error_msg) WARN_UNUSED_RESULT; |
334 | 334 |
| 335 // Requests the local state preference to be set to the given value. |
| 336 // Ownership of |value| is taken by this function. Returns true on success. |
| 337 bool SendSetLocalStatePreferenceJSONRequest( |
| 338 AutomationMessageSender* sender, |
| 339 const std::string& pref, |
| 340 base::Value* value, |
| 341 std::string* error_msg) WARN_UNUSED_RESULT; |
| 342 |
| 343 // Requests the user preference to be set to the given value. |
| 344 // Ownership of |value| is taken by this function. Returns true on success. |
| 345 bool SendSetPreferenceJSONRequest( |
| 346 AutomationMessageSender* sender, |
| 347 const std::string& pref, |
| 348 base::Value* value, |
| 349 std::string* error_msg) WARN_UNUSED_RESULT; |
| 350 |
335 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 351 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
OLD | NEW |