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

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

Issue 6614023: Convert ChromeDriver to use only the JSON automation interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Pawel's additional comments Created 9 years, 9 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
Index: chrome/browser/automation/automation_provider_observers.h
diff --git a/chrome/browser/automation/automation_provider_observers.h b/chrome/browser/automation/automation_provider_observers.h
index 2005862a2c043a89b5ecfe864619463556a9a0fc..9fed883311c204231dda993819eec30eb23b6d57 100644
--- a/chrome/browser/automation/automation_provider_observers.h
+++ b/chrome/browser/automation/automation_provider_observers.h
@@ -1140,4 +1140,22 @@ class WaitForProcessLauncherThreadToGoIdleObserver
DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver);
};
+// Observes the result of execution of Javascript and sends a JSON reply.
+class ExecuteJavascriptObserver : public DomOperationObserver {
+ public:
+ ExecuteJavascriptObserver(AutomationProvider* automation,
+ IPC::Message* reply_message);
+ virtual ~ExecuteJavascriptObserver();
+
+ private:
+ // Overriden from DomOperationObserver.
+ virtual void OnDomOperationCompleted(const std::string& json);
+
+ base::WeakPtr<AutomationProvider> automation_;
+ scoped_ptr<IPC::Message> reply_message_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExecuteJavascriptObserver);
+};
+
+
#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
« no previous file with comments | « chrome/browser/automation/automation_provider_json.cc ('k') | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698