diff options
Diffstat (limited to 'chrome/browser/automation/automation_provider.h')
-rw-r--r-- | chrome/browser/automation/automation_provider.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h index b644dd4..da32336 100644 --- a/chrome/browser/automation/automation_provider.h +++ b/chrome/browser/automation/automation_provider.h @@ -327,6 +327,10 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>, int64 id, bool* success); + // Util for creating a JSON error return string (dict with key + // 'error' and error string value). No need to quote input. + std::string JSONErrorString(std::string err); + // Set window dimensions. // Uses the JSON interface for input/output. void SetWindowDimensions(Browser* browser, @@ -432,6 +436,12 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>, DictionaryValue* args, IPC::Message* reply_message); + // Save the contents of a tab into a file. + // Uses the JSON interface for input/output. + void SaveTabContents(Browser* browser, + DictionaryValue* args, + IPC::Message* reply_message); + // Generic pattern for pyautolib // Uses the JSON interface for input/output. void SendJSONRequest(int handle, |