From d4adc298c7b9a2883dcefeccd67dbb102afe7b2b Mon Sep 17 00:00:00 2001 From: "nirnimesh@chromium.org" Date: Thu, 15 Apr 2010 18:06:39 +0000 Subject: Add automation hooks to get info about downloads. Makes info about downloads available to pyauto. Also add JSONInterfaceError to represent an error in the json ipc interace. TEST=None BUG=None Review URL: http://codereview.chromium.org/1637008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44664 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/automation/automation_provider.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/browser/automation/automation_provider.h') diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h index f3d03cb6..0c30ced 100644 --- a/chrome/browser/automation/automation_provider.h +++ b/chrome/browser/automation/automation_provider.h @@ -328,7 +328,13 @@ class AutomationProvider : public base::RefCounted, int64 id, bool* success); + // Get info about downloads. This includes only ones that have been + // registered by the history system. + // Uses the JSON interface for input/output. + void GetDownloadsInfo(DictionaryValue* args, IPC::Message* reply_message); + // Wait for all downloads to complete. + // Uses the JSON interface for input/output. void WaitForDownloadsToComplete( DictionaryValue* args, IPC::Message* reply_message); -- cgit v1.1