| Index: chrome/test/automation/automation_json_requests.cc
|
| diff --git a/chrome/test/automation/automation_json_requests.cc b/chrome/test/automation/automation_json_requests.cc
|
| index 5f5449bab2b9d8d9cdc21417124d705eafc17671..8b379604c8b75ad85a4ee0c6476f8db7cc9c2d37 100644
|
| --- a/chrome/test/automation/automation_json_requests.cc
|
| +++ b/chrome/test/automation/automation_json_requests.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/test/automation/automation_json_requests.h"
|
|
|
| +#include "base/file_path.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/values.h"
|
| #include "base/json/json_reader.h"
|
| @@ -195,6 +196,21 @@ bool SendReloadJSONRequest(
|
| return SendAutomationJSONRequest(sender, dict, &reply_dict);
|
| }
|
|
|
| +bool SendCaptureEntirePageJSONRequest(
|
| + AutomationMessageSender* sender,
|
| + int browser_index,
|
| + int tab_index,
|
| + const FilePath& path) {
|
| + DictionaryValue dict;
|
| + dict.SetString("command", "CaptureEntirePage");
|
| + dict.SetInteger("windex", browser_index);
|
| + dict.SetInteger("tab_index", tab_index);
|
| + dict.SetString("path", path.value());
|
| + DictionaryValue reply_dict;
|
| +
|
| + return SendAutomationJSONRequest(sender, dict, &reply_dict);
|
| +}
|
| +
|
| bool SendGetTabURLJSONRequest(
|
| AutomationMessageSender* sender,
|
| int browser_index,
|
|
|