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

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

Issue 6705004: Return the full cookie details in TestingAutomationProvider and pass around (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 9 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
« no previous file with comments | « chrome/browser/automation/automation_util.cc ('k') | chrome/test/automation/automation_json_requests.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 762f9c08e43861ac515d07f74afe9247732739d8..d516f418f6f26365a4bc4ac6569d0b7ae69da21e 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -863,16 +863,27 @@ class TestingAutomationProvider : public AutomationProvider,
void GetTabTitleJSON(DictionaryValue* args, IPC::Message* reply_message);
// Gets the cookies for the given URL. Uses the JSON interface.
+ // "expiry" refers to the amount of seconds since the Unix epoch. If omitted,
+ // the cookie is valid for the duration of the browser session.
// Example:
- // input: { "windex": 1, "tab_index": 1, "url": "http://www.google.com" }
- // output: { "cookies": "PREF=12012" }
+ // input: { "url": "http://www.google.com" }
+ // output: { "cookies": [
+ // {
+ // "name": "PREF",
+ // "value": "123101",
+ // "path": "/",
+ // "domain": "www.google.com",
+ // "secure": false,
+ // "expiry": 1401982012
+ // }
+ // ]
+ // }
void GetCookiesJSON(DictionaryValue* args, IPC::Message* reply_message);
// Deletes the cookie with the given name for the URL. Uses the JSON
// interface.
// Example:
- // input: { "windex": 1,
- // "tab_index": 1,
+ // input: {
// "url": "http://www.google.com",
// "name": "my_cookie"
// }
@@ -880,11 +891,25 @@ class TestingAutomationProvider : public AutomationProvider,
void DeleteCookieJSON(DictionaryValue* args, IPC::Message* reply_message);
// Sets a cookie for the given URL. Uses the JSON interface.
+ // "expiry" refers to the amount of seconds since the Unix epoch. If omitted,
+ // the cookie will be valid for the duration of the browser session.
+ // "domain" refers to the applicable domain for the cookie. Valid domain
+ // choices for the site "http://www.google.com" and resulting cookie
+ // applicability:
+ // [.]www.google.com - applicable on www.google.com and its subdomains
+ // [.]google.com - applicable on google.com and its subdomains
+ // <none> - applicable only on www.google.com
+ //
// Example:
- // input: { "windex": 1,
- // "tab_index": 1,
- // "url": "http://www.google.com",
- // "cookie": "PREF=21321"
+ // input: { "url": "http://www.google.com",
+ // "cookie": {
+ // "name": "PREF",
+ // "value": "123101",
+ // "path": "/", // optional
+ // "domain": ".www.google.com", // optional
+ // "secure": false, // optional
+ // "expiry": 1401982012 // optional
+ // }
// }
// output: none
void SetCookieJSON(DictionaryValue* args, IPC::Message* reply_message);
« no previous file with comments | « chrome/browser/automation/automation_util.cc ('k') | chrome/test/automation/automation_json_requests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698