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

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

Issue 6330012: Cookie commands for the webdriver protocol (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: minor fixes Created 9 years, 10 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/chrome_tests.gypi ('k') | chrome/test/webdriver/automation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/automation.h
diff --git a/chrome/test/webdriver/automation.h b/chrome/test/webdriver/automation.h
index ac7d405d99a232d8fb278bd66959a7cd5d2344db..1d97bc24fd36cedd917297eb5b02f398b5c0bf73 100644
--- a/chrome/test/webdriver/automation.h
+++ b/chrome/test/webdriver/automation.h
@@ -14,6 +14,8 @@
#include "chrome/test/ui/ui_test.h"
#include "ui/base/keycodes/keyboard_codes.h"
+class GURL;
+
namespace webdriver {
struct WebKeyEvent {
@@ -37,6 +39,8 @@ struct WebKeyEvent {
// Creates and controls the Chrome instance.
// This class should be created and accessed on a single thread.
+// Note: All member functions are void because they are invoked
+// by posting a task from NewRunnableMethod.
// TODO(phajdan.jr): Abstract UITestBase classes, see:
// http://code.google.com/p/chromium/issues/detail?id=56865
class Automation : private UITestBase {
@@ -67,7 +71,14 @@ class Automation : private UITestBase {
void GoBack(bool* success);
void Reload(bool* success);
void GetURL(std::string* url, bool* success);
+ void GetGURL(GURL* gurl, bool* success);
void GetTabTitle(std::string* tab_title, bool* success);
+ void GetCookies(const GURL& gurl, std::string* cookies, bool* success);
+ void GetCookieByName(const GURL& gurl, const std::string& cookie_name,
+ std::string* cookie, bool* success);
+ void DeleteCookie(const GURL& gurl, const std::string& cookie_name,
+ bool* success);
+ void SetCookie(const GURL& gurl, const std::string& cookie, bool* success);
private:
scoped_refptr<BrowserProxy> browser_;
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/webdriver/automation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698