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

Unified Diff: chrome/test/webdriver/session.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/test/webdriver/commands/session_with_id.cc ('k') | chrome/test/webdriver/session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/session.h
diff --git a/chrome/test/webdriver/session.h b/chrome/test/webdriver/session.h
index 79b0b54ab9f2e7676dee7e47ccec608e2625843b..c682beec3e64e64c9df8c5b18935872a9fffae17 100644
--- a/chrome/test/webdriver/session.h
+++ b/chrome/test/webdriver/session.h
@@ -98,11 +98,16 @@ class Session {
bool GetURL(GURL* url);
bool GetURL(std::string* url);
bool GetTabTitle(std::string* tab_title);
- bool GetCookies(const GURL& url, std::string* cookies);
- bool GetCookieByName(const GURL& url, const std::string& cookie_name,
- std::string* cookie);
- bool DeleteCookie(const GURL& url, const std::string& cookie_name);
- bool SetCookie(const GURL& url, const std::string& cookie);
+
+ bool GetCookies(const std::string& url, ListValue** cookies);
+ bool GetCookiesDeprecated(const GURL& url, std::string* cookies);
+ bool GetCookieByNameDeprecated(const GURL& url,
+ const std::string& cookie_name,
+ std::string* cookie);
+ bool DeleteCookie(const std::string& url, const std::string& cookie_name);
+ bool DeleteCookieDeprecated(const GURL& url, const std::string& cookie_name);
+ bool SetCookie(const std::string& url, DictionaryValue* cookie_dict);
+ bool SetCookieDeprecated(const GURL& url, const std::string& cookie);
// Gets all the currently existing window IDs. Returns true on success.
bool GetWindowIds(std::vector<int>* window_ids);
@@ -127,7 +132,14 @@ class Session {
bool CloseWindow();
// Gets the version of the running browser.
- std::string GetVersion();
+ std::string GetBrowserVersion();
+
+ // Gets whether the running browser's version is newer or equal to the given
+ // version. Returns true on successful comparison. For example, in the version
+ // 11.0.632.4, 632 is the build number and 4 is the patch number.
+ bool CompareBrowserVersion(int build_no,
+ int patch_no,
+ bool* is_newer_or_equal);
// Finds a single element in the given frame, starting at the given
// |root_element|, using the given locator strategy. |locator| should be a
« no previous file with comments | « chrome/test/webdriver/commands/session_with_id.cc ('k') | chrome/test/webdriver/session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698