OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBDRIVER_SESSION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ |
6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ | 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 Error* NavigateToURL(const std::string& url); | 136 Error* NavigateToURL(const std::string& url); |
137 Error* GoForward(); | 137 Error* GoForward(); |
138 Error* GoBack(); | 138 Error* GoBack(); |
139 Error* Reload(); | 139 Error* Reload(); |
140 Error* GetURL(std::string* url); | 140 Error* GetURL(std::string* url); |
141 Error* GetTitle(std::string* tab_title); | 141 Error* GetTitle(std::string* tab_title); |
142 Error* GetScreenShot(std::string* png); | 142 Error* GetScreenShot(std::string* png); |
143 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) | 143 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) |
144 Error* HeapProfilerDump(const std::string& reason); | 144 Error* HeapProfilerDump(const std::string& reason); |
145 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) | 145 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) |
146 Error* GetCookies(const std::string& url, base::ListValue** cookies); | 146 Error* GetCookies(const std::string& url, |
| 147 scoped_ptr<base::ListValue>* cookies); |
147 Error* DeleteCookie(const std::string& url, const std::string& cookie_name); | 148 Error* DeleteCookie(const std::string& url, const std::string& cookie_name); |
148 Error* SetCookie(const std::string& url, base::DictionaryValue* cookie_dict); | 149 Error* SetCookie(const std::string& url, base::DictionaryValue* cookie_dict); |
149 | 150 |
150 // Gets all the currently open views. | 151 // Gets all the currently open views. |
151 Error* GetViews(std::vector<WebViewInfo>* views); | 152 Error* GetViews(std::vector<WebViewInfo>* views); |
152 | 153 |
153 // Switches the view used by default. |id_or_name| is either a view ID | 154 // Switches the view used by default. |id_or_name| is either a view ID |
154 // returned by |GetViews| or the name attribute of a DOM window. | 155 // returned by |GetViews| or the name attribute of a DOM window. |
155 // Only tabs are considered when searching by name. | 156 // Only tabs are considered when searching by name. |
156 Error* SwitchToView(const std::string& id_or_name); | 157 Error* SwitchToView(const std::string& id_or_name); |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 // (e.g., 18.0.995.0 -> 995). Only valid after Chrome has started. | 495 // (e.g., 18.0.995.0 -> 995). Only valid after Chrome has started. |
495 // See http://dev.chromium.org/releases/version-numbers. | 496 // See http://dev.chromium.org/releases/version-numbers. |
496 int build_no_; | 497 int build_no_; |
497 | 498 |
498 DISALLOW_COPY_AND_ASSIGN(Session); | 499 DISALLOW_COPY_AND_ASSIGN(Session); |
499 }; | 500 }; |
500 | 501 |
501 } // namespace webdriver | 502 } // namespace webdriver |
502 | 503 |
503 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ | 504 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ |
OLD | NEW |