Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: chrome/test/automation/automation_json_requests.h

Issue 8890026: Allow chromedriver to set local state preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/test/automation/automation_json_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698