Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 void ExecuteScript(const std::string& frame_xpath, | 35 void ExecuteScript(const std::string& frame_xpath, |
| 36 const std::string& script, | 36 const std::string& script, |
| 37 std::string* result, | 37 std::string* result, |
| 38 bool* success); | 38 bool* success); |
| 39 | 39 |
| 40 void NavigateToURL(const std::string& url, bool* success); | 40 void NavigateToURL(const std::string& url, bool* success); |
| 41 void GoForward(bool* success); | 41 void GoForward(bool* success); |
| 42 void GoBack(bool* success); | 42 void GoBack(bool* success); |
| 43 void Reload(bool* success); | 43 void Reload(bool* success); |
| 44 void GetURL(std::string* url, bool* success); | 44 void GetURL(std::string* url, bool* success); |
| 45 void GetGURL(GURL* gurl, bool* success); | |
| 45 void GetTabTitle(std::string* tab_title, bool* success); | 46 void GetTabTitle(std::string* tab_title, bool* success); |
| 47 void GetCookies(const GURL& gurl, std::string* cookies, bool* success); | |
|
John Grabowski
2011/02/14 21:59:06
Why don't you like return values?
Seems you could
kkania
2011/02/14 22:47:08
We don't return bool because these methods are cal
John Grabowski
2011/02/14 22:57:09
Seems completely reasonable.
How about a comment a
| |
| 48 void GetCookieByName(const GURL& gurl, const std::string& cookie_name, | |
| 49 std::string* cookie, bool* success); | |
| 50 void DeleteCookie(const GURL& gurl, const std::string& cookie_name, | |
| 51 bool* success); | |
| 52 void SetCookie(const GURL& gurl, const std::string& cookie, bool* success); | |
| 46 | 53 |
| 47 private: | 54 private: |
| 48 scoped_refptr<BrowserProxy> browser_; | 55 scoped_refptr<BrowserProxy> browser_; |
| 49 scoped_refptr<TabProxy> tab_; | 56 scoped_refptr<TabProxy> tab_; |
| 50 | 57 |
| 51 ScopedTempDir profile_dir_; | 58 ScopedTempDir profile_dir_; |
| 52 | 59 |
| 53 DISALLOW_COPY_AND_ASSIGN(Automation); | 60 DISALLOW_COPY_AND_ASSIGN(Automation); |
| 54 }; | 61 }; |
| 55 | 62 |
| 56 } // namespace webdriver | 63 } // namespace webdriver |
| 57 | 64 |
| 58 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); | 65 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); |
| 59 | 66 |
| 60 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 67 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
| OLD | NEW |