Index: chrome/browser/automation/testing_automation_provider.h |
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h |
index 3f374ee5eb1b28d645bcc6666465030d4ebba24a..6e1fc855ddbcf44f408068397595a8b5922ad35b 100644 |
--- a/chrome/browser/automation/testing_automation_provider.h |
+++ b/chrome/browser/automation/testing_automation_provider.h |
@@ -368,6 +368,31 @@ class TestingAutomationProvider : public AutomationProvider, |
base::DictionaryValue* args, |
IPC::Message* reply_message); |
+ // Sets the visibility of the download shelf. Uses the JSON interface. |
+ // Example: |
+ // input: { "is_visible": true, |
+ // "windex": 1, |
+ // } |
+ // output: none |
+ void SetDownloadShelfVisibleJSON(base::DictionaryValue* args, |
+ IPC::Message* reply_message); |
+ |
+ // Gets the visibility of the download shelf. Uses the JSON interface. |
+ // Example: |
+ // input: { "windex": 1 } |
+ // output: { "is_visible": true } |
+ void IsDownloadShelfVisibleJSON(base::DictionaryValue* args, |
+ IPC::Message* reply_message); |
+ |
+ // Gets the download path of the given tab. Uses the JSON interface. |
+ // Example: |
+ // input: { "tab_index": 1, |
+ // "windex": 1, |
+ // } |
+ // output: { "path": "/home/foobar/Downloads" } |
+ void GetDownloadDirectoryJSON(base::DictionaryValue* args, |
+ IPC::Message* reply_message); |
+ |
// Get search engines list. |
// Assumes that the profile's template url model is loaded. |
// Uses the JSON interface for input/output. |
@@ -1097,6 +1122,42 @@ class TestingAutomationProvider : public AutomationProvider, |
// output: none |
void SetCookieJSON(base::DictionaryValue* args, IPC::Message* reply_message); |
+ // Gets the cookies for the given URL in the context of a given tab. Uses the |
+ // JSON interface. |
+ // Example: |
+ // input: { "url": "http://www.google.com", |
+ // "tab_index": 1, |
+ // "windex": 1, |
+ // } |
+ // output: { "cookies": "foo=bar" } |
+ void GetTabCookiesJSON(base::DictionaryValue* args, |
+ IPC::Message* reply_message); |
+ |
+ // Deletes the cookie with the given name for the URL in the context of a |
+ // given tab. Uses the JSON interface. |
+ // Example: |
+ // input: { "url": "http://www.google.com", |
+ // "cookie_name": "my_cookie" |
+ // "tab_index": 1, |
+ // "windex": 1, |
+ // } |
+ // output: none |
+ void DeleteTabCookieJSON(base::DictionaryValue* args, |
+ IPC::Message* reply_message); |
+ |
+ // Sets a cookie for the given URL in the context of a given tab. Uses the |
+ // JSON interface. |
+ // |
+ // Example: |
+ // input: { "url": "http://www.google.com", |
+ // "value": "name=value; Expires=Wed, 09 Jun 2021 10:18:14 GMT", |
+ // "tab_index": 1, |
+ // "windex": 1, |
+ // } |
+ // output: none |
+ void SetTabCookieJSON(base::DictionaryValue* args, |
+ IPC::Message* reply_message); |
+ |
// Gets the ID for every open tab. This ID is unique per session. |
// Example: |
// input: none |