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

Side by Side 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 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_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 1133
1134 void RunOnProcessLauncherThread(); 1134 void RunOnProcessLauncherThread();
1135 void RunOnUIThread(); 1135 void RunOnUIThread();
1136 1136
1137 base::WeakPtr<AutomationProvider> automation_; 1137 base::WeakPtr<AutomationProvider> automation_;
1138 scoped_ptr<IPC::Message> reply_message_; 1138 scoped_ptr<IPC::Message> reply_message_;
1139 1139
1140 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver); 1140 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver);
1141 }; 1141 };
1142 1142
1143 // Observes the result of execution of Javascript and sends a JSON reply.
1144 class ExecuteJavascriptObserver : public DomOperationObserver {
1145 public:
1146 ExecuteJavascriptObserver(AutomationProvider* automation,
1147 IPC::Message* reply_message);
1148 virtual ~ExecuteJavascriptObserver();
1149
1150 private:
1151 // Overriden from DomOperationObserver.
1152 virtual void OnDomOperationCompleted(const std::string& json);
1153
1154 base::WeakPtr<AutomationProvider> automation_;
1155 scoped_ptr<IPC::Message> reply_message_;
1156
1157 DISALLOW_COPY_AND_ASSIGN(ExecuteJavascriptObserver);
1158 };
1159
1160
1143 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1161 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« 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