Index: chrome/test/webdriver/webdriver_session.h |
diff --git a/chrome/test/webdriver/webdriver_session.h b/chrome/test/webdriver/webdriver_session.h |
index a9af2bd019517107d55c846a428402d8fa7735f2..d6235bf9eb1edcf35fc50cdd05242136eb05fa89 100644 |
--- a/chrome/test/webdriver/webdriver_session.h |
+++ b/chrome/test/webdriver/webdriver_session.h |
@@ -60,6 +60,15 @@ class Session { |
// True if the session should not wait for page loads and navigate |
// asynchronously. |
bool load_async; |
+ |
+ // If true, ChromeDriver will bypass certain configuration options that |
Huyen
2011/12/09 23:56:55
Maybe reorder the wording a little bit:
"By defaul
kkania
2011/12/10 00:37:44
Done.
|
+ // are convenient for normal website testing with WebDriver. E.g., if |
+ // false, ChromeDriver will configure Chrome so that websites automatically |
+ // can track user location without running into an infobar. |
+ bool no_website_testing_defaults; |
+ |
+ // A list of extensions to install on startup. |
+ std::vector<FilePath> extensions; |
}; |
// Adds this |Session| to the |SessionManager|. The session manages its own |
@@ -316,6 +325,13 @@ class Session { |
// Install extension at |path|. |
Error* InstallExtension(const FilePath& path, std::string* extension_id); |
+ // Sets the preference to the given value. This function takes ownership |
+ // of |value|. If the preference is a user preference (instead of local |
+ // state preference) |is_user_pref| should be true. |
+ Error* SetPreference(const std::string& pref, |
+ bool is_user_pref, |
+ base::Value* value); |
+ |
const std::string& id() const; |
const FrameId& current_target() const; |
@@ -384,6 +400,8 @@ class Session { |
bool center, |
bool verify_clickable_at_middle, |
Point* location); |
+ Error* PostBrowserStartInit(); |
+ Error* InitForWebsiteTesting(); |
const std::string id_; |
FrameId current_target_; |