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

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

Issue 7976016: New pyauto automation hook to get browser process information. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed second round of review comments. Created 9 years, 3 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 | « chrome/browser/automation/testing_automation_provider.h ('k') | chrome/test/functional/PYAUTO_TESTS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 71f1eac11174b98dae71ea7744705355676193f2..c1f805d000d8bf2fcef454ff43895da6c5478ae5 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -2256,6 +2256,8 @@ void TestingAutomationProvider::SendJSONRequest(int handle,
&TestingAutomationProvider::CreateNewAutomationProvider;
handler_map["GetBrowserInfo"] =
&TestingAutomationProvider::GetBrowserInfo;
+ handler_map["GetProcessInfo"] =
+ &TestingAutomationProvider::GetProcessInfo;
#if defined(OS_CHROMEOS)
handler_map["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo;
handler_map["ShowCreateAccountUI"] =
@@ -2874,6 +2876,17 @@ void TestingAutomationProvider::GetBrowserInfo(
AutomationJSONReply(this, reply_message).SendSuccess(return_value.get());
}
+// Sample json input: { "command": "GetProcessInfo" }
+// Refer to GetProcessInfo() in chrome/test/pyautolib/pyauto.py for
+// sample json output.
+void TestingAutomationProvider::GetProcessInfo(
+ DictionaryValue* args,
+ IPC::Message* reply_message) {
+ scoped_refptr<ProcessInfoObserver>
+ proc_observer(new ProcessInfoObserver(this, reply_message));
+ proc_observer->StartFetch();
+}
+
// Sample json input: { "command": "GetNavigationInfo" }
// Refer to GetNavigationInfo() in chrome/test/pyautolib/pyauto.py for
// sample json output.
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.h ('k') | chrome/test/functional/PYAUTO_TESTS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698