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

Unified Diff: chrome/test/webdriver/automation.cc

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/test/webdriver/automation.h ('k') | chrome/test/webdriver/commands/cookie_commands.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/automation.cc
diff --git a/chrome/test/webdriver/automation.cc b/chrome/test/webdriver/automation.cc
index cbc8e0e95609f9fc1c55c3372ad2f419b1fcec50..aed62bc38db4602bed42b1a55903c3ee501240d8 100644
--- a/chrome/test/webdriver/automation.cc
+++ b/chrome/test/webdriver/automation.cc
@@ -314,48 +314,66 @@ void Automation::GetTabTitle(int tab_id,
automation(), windex, tab_index, tab_title);
}
-void Automation::GetCookies(int tab_id,
- const GURL& gurl,
- std::string* cookies,
+void Automation::GetCookies(const std::string& url,
+ ListValue** cookies,
bool* success) {
+ *success = SendGetCookiesJSONRequest(automation(), url, cookies);
+}
+
+void Automation::GetCookiesDeprecated(int tab_id,
+ const GURL& gurl,
+ std::string* cookies,
+ bool* success) {
int windex = 0, tab_index = 0;
if (!GetIndicesForTab(tab_id, &windex, &tab_index)) {
*success = false;
return;
}
- *success = SendGetCookiesJSONRequest(
+ *success = SendGetCookiesJSONRequestDeprecated(
automation(), windex, gurl.possibly_invalid_spec(), cookies);
}
-void Automation::DeleteCookie(int tab_id,
- const GURL& gurl,
+void Automation::DeleteCookie(const std::string& url,
const std::string& cookie_name,
bool* success) {
+ *success = SendDeleteCookieJSONRequest(automation(), url, cookie_name);
+}
+
+void Automation::DeleteCookieDeprecated(int tab_id,
+ const GURL& gurl,
+ const std::string& cookie_name,
+ bool* success) {
int windex = 0, tab_index = 0;
if (!GetIndicesForTab(tab_id, &windex, &tab_index)) {
*success = false;
return;
}
- *success = SendDeleteCookieJSONRequest(
+ *success = SendDeleteCookieJSONRequestDeprecated(
automation(),
windex,
gurl.possibly_invalid_spec(),
cookie_name);
}
-void Automation::SetCookie(int tab_id,
- const GURL& gurl,
- const std::string& cookie,
+void Automation::SetCookie(const std::string& url,
+ DictionaryValue* cookie_dict,
bool* success) {
+ *success = SendSetCookieJSONRequest(automation(), url, cookie_dict);
+}
+
+void Automation::SetCookieDeprecated(int tab_id,
+ const GURL& gurl,
+ const std::string& cookie,
+ bool* success) {
int windex = 0, tab_index = 0;
if (!GetIndicesForTab(tab_id, &windex, &tab_index)) {
*success = false;
return;
}
- *success = SendSetCookieJSONRequest(
+ *success = SendSetCookieJSONRequestDeprecated(
automation(),
windex,
gurl.possibly_invalid_spec(),
@@ -381,7 +399,7 @@ void Automation::CloseTab(int tab_id, bool* success) {
*success = SendCloseTabJSONRequest(automation(), windex, tab_index);
}
-void Automation::GetVersion(std::string* version) {
+void Automation::GetBrowserVersion(std::string* version) {
*version = automation()->server_version();
}
« no previous file with comments | « chrome/test/webdriver/automation.h ('k') | chrome/test/webdriver/commands/cookie_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698