Index: chrome/test/webdriver/automation.cc |
diff --git a/chrome/test/webdriver/automation.cc b/chrome/test/webdriver/automation.cc |
index e0cd968a21c0e14dbfdc822fab49989d6758aa3d..835c93fc44dfb08b11cb473ca50922d6c5af52ff 100644 |
--- a/chrome/test/webdriver/automation.cc |
+++ b/chrome/test/webdriver/automation.cc |
@@ -84,6 +84,11 @@ void Automation::GetURL(std::string* url, |
*url = gurl.possibly_invalid_spec(); |
} |
+void Automation::GetGURL(GURL* gurl, |
kkania
2011/02/08 18:35:22
I don't see where this is used. Isn't the one abov
|
+ bool* success) { |
+ *success = tab_->GetCurrentURL(gurl); |
+} |
+ |
void Automation::GetTabTitle(std::string* tab_title, |
bool* success) { |
std::wstring wide_title; |
@@ -92,4 +97,29 @@ void Automation::GetTabTitle(std::string* tab_title, |
*tab_title = WideToUTF8(wide_title); |
} |
+void Automation::GetCookies(const GURL& gurl, |
+ std::string* cookies, |
kkania
2011/02/08 18:35:22
correct indents:
void Automation::GetCookies(
|
+ bool* success) { |
+ *success = tab_->GetCookies(gurl, cookies); |
+} |
+ |
+void Automation::GetCookieByName(const GURL& gurl, |
kkania
2011/02/08 18:35:22
also correct this and the rest of the indents
|
+ const std::string& cookie_name, |
+ std::string* cookie, |
+ bool* success) { |
+ *success = tab_->GetCookieByName(gurl, cookie_name, cookie); |
+} |
+ |
+void Automation::DeleteCookie(const GURL& gurl, |
+ const std::string& cookie_name, |
+ bool* success) { |
+ *success = tab_->DeleteCookie(gurl, cookie_name); |
+} |
+ |
+void Automation::SetCookie(const GURL& gurl, |
+ const std::string& cookie, |
+ bool* success) { |
+ *success = tab_->SetCookie(gurl, cookie); |
+} |
+ |
} // namespace webdriver |