summaryrefslogtreecommitdiffstats
path: root/chrome_frame/npapi_url_request.cc
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_frame/npapi_url_request.cc
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_frame/npapi_url_request.cc')
-rw-r--r--chrome_frame/npapi_url_request.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_frame/npapi_url_request.cc b/chrome_frame/npapi_url_request.cc
index ad2416c..878f0ed6 100644
--- a/chrome_frame/npapi_url_request.cc
+++ b/chrome_frame/npapi_url_request.cc
@@ -223,7 +223,8 @@ void NPAPIUrlRequestManager::StartRequest(int request_id,
request_info.extra_request_headers,
request_info.upload_data,
static_cast<ResourceType::Type>(request_info.resource_type),
- enable_frame_busting_)) {
+ enable_frame_busting_,
+ request_info.load_flags)) {
DCHECK(request_map_.find(request_id) == request_map_.end());
if (new_request->Start()) {
request_map_[request_id] = new_request;