summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 00:22:37 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 00:22:37 +0000
commita9c7ecfca90bc3084af7a6741d57f95107e19826 (patch)
tree54e98fcf870078c6e8186081bb4faebaa693d283 /chrome/test
parent803ef4ef5b14ff135b826425825291259f9ceeab (diff)
downloadchromium_src-a9c7ecfca90bc3084af7a6741d57f95107e19826.zip
chromium_src-a9c7ecfca90bc3084af7a6741d57f95107e19826.tar.gz
chromium_src-a9c7ecfca90bc3084af7a6741d57f95107e19826.tar.bz2
Cause POST data to be marhsaled across the automation interface when using AutomationMsg_RequestStart.
Review URL: http://codereview.chromium.org/159228 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/automation/automation_messages.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/test/automation/automation_messages.h b/chrome/test/automation/automation_messages.h
index 7fa2aa7..f7f1762 100644
--- a/chrome/test/automation/automation_messages.h
+++ b/chrome/test/automation/automation_messages.h
@@ -13,7 +13,8 @@
#include "chrome/browser/tab_contents/security_style.h"
#include "chrome/common/common_param_traits.h"
#include "chrome/test/automation/automation_constants.h"
-#include "ipc/ipc_message_utils.h"
+#include "net/base/upload_data.h"
+
struct AutomationMsg_Find_Params {
// Unused value, which exists only for backwards compat.
@@ -230,6 +231,7 @@ struct AutomationURLRequest {
std::string method;
std::string referrer;
std::string extra_request_headers;
+ scoped_refptr<net::UploadData> upload_data;
};
// Traits for AutomationURLRequest structure to pack/unpack.
@@ -241,12 +243,14 @@ struct ParamTraits<AutomationURLRequest> {
WriteParam(m, p.method);
WriteParam(m, p.referrer);
WriteParam(m, p.extra_request_headers);
+ WriteParam(m, p.upload_data);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return ReadParam(m, iter, &p->url) &&
ReadParam(m, iter, &p->method) &&
ReadParam(m, iter, &p->referrer) &&
- ReadParam(m, iter, &p->extra_request_headers);
+ ReadParam(m, iter, &p->extra_request_headers) &&
+ ReadParam(m, iter, &p->upload_data);
}
static void Log(const param_type& p, std::wstring* l) {
l->append(L"(");
@@ -257,6 +261,8 @@ struct ParamTraits<AutomationURLRequest> {
LogParam(p.referrer, l);
l->append(L", ");
LogParam(p.extra_request_headers, l);
+ l->append(L", ");
+ LogParam(p.upload_data, l);
l->append(L")");
}
};