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

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: Version -> BrowserVersion 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
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..543c55b71027014ce32206ea588ecee8434b0317 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -863,16 +863,26 @@ 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.
// 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 +890,17 @@ 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.
// 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);

Powered by Google App Engine
This is Rietveld 408576698