diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 00:30:01 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 00:30:01 +0000 |
commit | 5f76da88e6734cda22d39adb0f5e4cca27f07690 (patch) | |
tree | 86ae8917fe709fdb2d1fb91b3616930bc6755f56 /webkit/glue/resource_loader_bridge.cc | |
parent | e89e638af5f9817cb0bb8eaa82ac7e0f70a9d02e (diff) | |
download | chromium_src-5f76da88e6734cda22d39adb0f5e4cca27f07690.zip chromium_src-5f76da88e6734cda22d39adb0f5e4cca27f07690.tar.gz chromium_src-5f76da88e6734cda22d39adb0f5e4cca27f07690.tar.bz2 |
Move response_data_file from ResourceResponseHead to webkit_glue::ResponseInfo
We would like to use the entry response_data_file in ResourceResponseHead
(currently in chrome/browser/resource_handler.h) in chrome/renderer. So refactor the
member and move it to webkit_glue::ResourceLoaderBridge::ResponsseInfo which
is the base class of ResourceResponseHead.
Review URL: http://codereview.chromium.org/42199
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/resource_loader_bridge.cc')
-rw-r--r-- | webkit/glue/resource_loader_bridge.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/resource_loader_bridge.cc b/webkit/glue/resource_loader_bridge.cc index 5b29fb0..266b518 100644 --- a/webkit/glue/resource_loader_bridge.cc +++ b/webkit/glue/resource_loader_bridge.cc @@ -12,6 +12,12 @@ namespace webkit_glue { ResourceLoaderBridge::ResponseInfo::ResponseInfo() { +#if defined(OS_WIN) + response_data_file = base::kInvalidPlatformFileValue; +#elif defined(OS_POSIX) + response_data_file.fd = base::kInvalidPlatformFileValue; + response_data_file.auto_close = false; +#endif } ResourceLoaderBridge::ResponseInfo::~ResponseInfo() { |