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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 const std::string& extension_id, | 447 const std::string& extension_id, |
448 bool browser_action, | 448 bool browser_action, |
449 std::string* error_msg) WARN_UNUSED_RESULT; | 449 std::string* error_msg) WARN_UNUSED_RESULT; |
450 | 450 |
451 // Requests the given extension be uninstalled. Returns true on success. | 451 // Requests the given extension be uninstalled. Returns true on success. |
452 bool SendUninstallExtensionJSONRequest( | 452 bool SendUninstallExtensionJSONRequest( |
453 AutomationMessageSender* sender, | 453 AutomationMessageSender* sender, |
454 const std::string& extension_id, | 454 const std::string& extension_id, |
455 std::string* error_msg) WARN_UNUSED_RESULT; | 455 std::string* error_msg) WARN_UNUSED_RESULT; |
456 | 456 |
| 457 // Requests the local state preference to be set to the given value. |
| 458 // Ownership of |value| is taken by this function. Returns true on success. |
| 459 bool SendSetLocalStatePreferenceJSONRequest( |
| 460 AutomationMessageSender* sender, |
| 461 const std::string& pref, |
| 462 base::Value* value, |
| 463 std::string* error_msg) WARN_UNUSED_RESULT; |
| 464 |
| 465 // Requests the user preference to be set to the given value. |
| 466 // Ownership of |value| is taken by this function. Returns true on success. |
| 467 bool SendSetPreferenceJSONRequest( |
| 468 AutomationMessageSender* sender, |
| 469 const std::string& pref, |
| 470 base::Value* value, |
| 471 std::string* error_msg) WARN_UNUSED_RESULT; |
| 472 |
457 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 473 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
OLD | NEW |