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

Unified Diff: chrome/browser/automation/testing_automation_provider.h

Issue 10804038: Convert cookie and download automation commands to the JSON interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698