summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 18:45:33 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 18:45:33 +0000
commitd9ffd55d3a85e3e543bd97f89ff46fd7dc228455 (patch)
treed70e93b879eef49a5dbbeccb2001ea5564bfebcb /chrome/test/automation
parentdcc7b326b585c5de60590cd808aed91342311d05 (diff)
downloadchromium_src-d9ffd55d3a85e3e543bd97f89ff46fd7dc228455.zip
chromium_src-d9ffd55d3a85e3e543bd97f89ff46fd7dc228455.tar.gz
chromium_src-d9ffd55d3a85e3e543bd97f89ff46fd7dc228455.tar.bz2
Refreshing pages in ChromeFrame would basically always fetch the pages from the cache. We need
to emulate Chrome and MSHTML where in the cache is resynchronized, i.e. new content is fetched from the server if it has been modified. To achieve this we now pass the load flags from Chrome when we initiate a HTTP request and basically or in the BINDF_RESYNCHRONIZE and BINDF_GETNEWESTVERSION flags based on the value of the load flags. Fixes bug http://code.google.com/p/chromium/issues/detail?id=41508 Test=Covered by new ChromeFrame test. Review URL: http://codereview.chromium.org/4000001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation')
-rw-r--r--chrome/test/automation/automation_messages.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/test/automation/automation_messages.h b/chrome/test/automation/automation_messages.h
index ad6791c..bb6d866 100644
--- a/chrome/test/automation/automation_messages.h
+++ b/chrome/test/automation/automation_messages.h
@@ -302,6 +302,7 @@ struct AutomationURLRequest {
std::string extra_request_headers;
scoped_refptr<net::UploadData> upload_data;
int resource_type; // see webkit/glue/resource_type.h
+ int load_flags; // see net/base/load_flags.h
};
// Traits for AutomationURLRequest structure to pack/unpack.
@@ -315,6 +316,7 @@ struct ParamTraits<AutomationURLRequest> {
WriteParam(m, p.extra_request_headers);
WriteParam(m, p.upload_data);
WriteParam(m, p.resource_type);
+ WriteParam(m, p.load_flags);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return ReadParam(m, iter, &p->url) &&
@@ -322,7 +324,8 @@ struct ParamTraits<AutomationURLRequest> {
ReadParam(m, iter, &p->referrer) &&
ReadParam(m, iter, &p->extra_request_headers) &&
ReadParam(m, iter, &p->upload_data) &&
- ReadParam(m, iter, &p->resource_type);
+ ReadParam(m, iter, &p->resource_type) &&
+ ReadParam(m, iter, &p->load_flags);
}
static void Log(const param_type& p, std::string* l) {
l->append("(");
@@ -337,6 +340,8 @@ struct ParamTraits<AutomationURLRequest> {
LogParam(p.upload_data, l);
l->append(", ");
LogParam(p.resource_type, l);
+ l->append(", ");
+ LogParam(p.load_flags, l);
l->append(")");
}
};