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

Unified Diff: chrome/browser/automation/testing_automation_provider.h

Issue 10168019: Adds an automation hook WaitUntilNavigationCompletes() which blocks until pending navigation comple… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a possible race condition. Created 8 years, 8 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 | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.h
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index 442ede923b9c6a01056d773f819a84eb25cdd920..d568e421ff6918d799efe7cf7bedc9338e07d53e 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -943,6 +943,18 @@ class TestingAutomationProvider : public AutomationProvider,
// output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS }
void NavigateToURL(base::DictionaryValue* args, IPC::Message* reply_message);
+ // Waits until any pending navigation completes in the specified tab.
+ // The pair |windex| and |tab_index| or the single |auto_id| must be given
+ // to specify the tab.
+ // Example:
+ // input: { "windex": 1,
+ // "tab_index": 1,
+ // "auto_id": { "type": 0, "id": "awoein" },
+ // }
+ // output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS }
+ void WaitUntilNavigationCompletes(
+ base::DictionaryValue* args, IPC::Message* reply_message);
+
// Executes javascript in the specified frame. Uses the JSON interface.
// Waits for a result from the |DOMAutomationController|. The javascript
// must send a string.
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698