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

Side by Side Diff: chrome/test/webdriver/webdriver_session.h

Issue 8649004: Allow chromedriver to install an extension and get all installed extension IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 // Gets the attribute of the given element. If there are no errors, the 301 // Gets the attribute of the given element. If there are no errors, the
302 // function sets |value| and the caller takes ownership. 302 // function sets |value| and the caller takes ownership.
303 Error* GetAttribute(const ElementId& element, const std::string& key, 303 Error* GetAttribute(const ElementId& element, const std::string& key,
304 base::Value** value); 304 base::Value** value);
305 305
306 // Waits for all tabs to stop loading. Returns true on success. 306 // Waits for all tabs to stop loading. Returns true on success.
307 Error* WaitForAllTabsToStopLoading(); 307 Error* WaitForAllTabsToStopLoading();
308 308
309 // Install packed extension at |path|. 309 // Install packed extension at |path|.
310 Error* InstallExtension(const FilePath& path); 310 Error* InstallExtensionDeprecated(const FilePath& path);
311
312 // Get installed extensions IDs.
313 Error* GetInstalledExtensions(std::vector<std::string>* extension_ids);
314
315 // Install extension at |path|.
316 Error* InstallExtension(const FilePath& path, std::string* extension_id);
311 317
312 const std::string& id() const; 318 const std::string& id() const;
313 319
314 const FrameId& current_target() const; 320 const FrameId& current_target() const;
315 321
316 void set_async_script_timeout(int timeout_ms); 322 void set_async_script_timeout(int timeout_ms);
317 int async_script_timeout() const; 323 int async_script_timeout() const;
318 324
319 void set_implicit_wait(int timeout_ms); 325 void set_implicit_wait(int timeout_ms);
320 int implicit_wait() const; 326 int implicit_wait() const;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 Options options_; 411 Options options_;
406 412
407 DISALLOW_COPY_AND_ASSIGN(Session); 413 DISALLOW_COPY_AND_ASSIGN(Session);
408 }; 414 };
409 415
410 } // namespace webdriver 416 } // namespace webdriver
411 417
412 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Session); 418 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Session);
413 419
414 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ 420 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698