diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 20:38:11 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 20:38:11 +0000 |
commit | d14c7ac0a14a2dc3984022aeadf830a3e30c99f3 (patch) | |
tree | 14b94d459b30e5156fa32daf318a217f79392d32 /net/url_request | |
parent | 5d25637a208dbed17b10d31eb91221e6332a5e62 (diff) | |
download | chromium_src-d14c7ac0a14a2dc3984022aeadf830a3e30c99f3.zip chromium_src-d14c7ac0a14a2dc3984022aeadf830a3e30c99f3.tar.gz chromium_src-d14c7ac0a14a2dc3984022aeadf830a3e30c99f3.tar.bz2 |
Remove code path that passes a file handle to the renderer
Since the code now does range request without any caching
the code path for passing file handle is not used any more.
Changes:
1. Remove response_data_file in webkit_glue::ResourceResponseHead
2. Remove response_data_file in net::ResourceInfo
3. Remove code that passes file handle using IPC
4. Remove code that passes file hadnle from network layer to ResourceDispatcherHost
5. Remove MediaResourceHandler
6. Remove code in disk_cache that expose the file handle
7. Remove ChromeURLRequestContext::CreateOffTheRecordForMedia() so no more OTR request context for media, in OTR mode simply memory cache is used
8. Reset cache size for media cache to default
BUG=12249
BUG=12256
Review URL: http://codereview.chromium.org/113931
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request.h | 7 | ||||
-rw-r--r-- | net/url_request/url_request_file_job.cc | 18 | ||||
-rw-r--r-- | net/url_request/url_request_file_job.h | 1 |
3 files changed, 0 insertions, 26 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h index 7798fa7..16a3286 100644 --- a/net/url_request/url_request.h +++ b/net/url_request/url_request.h @@ -333,13 +333,6 @@ class URLRequest { return response_info_.ssl_info; } - // Returns the platform specific file handle for the standalone file that - // contains response data. base::kInvalidPlatformFileValue is returned if - // such file is not available. - base::PlatformFile response_data_file() { - return response_info_.response_data_file; - } - // Returns the cookie values included in the response, if the request is one // that can have cookies. Returns true if the request is a cookie-bearing // type, false otherwise. This method may only be called once the diff --git a/net/url_request/url_request_file_job.cc b/net/url_request/url_request_file_job.cc index 7941424..67f4fb2 100644 --- a/net/url_request/url_request_file_job.cc +++ b/net/url_request/url_request_file_job.cc @@ -184,24 +184,6 @@ bool URLRequestFileJob::GetMimeType(std::string* mime_type) const { return net::GetMimeTypeFromFile(file_path_, mime_type); } -void URLRequestFileJob::GetResponseInfo(net::HttpResponseInfo* info) { - DCHECK(request_); - - // If we have enabled downloading the file, the requester expects to receive - // a file handle to the file. Since we are serving file:/// url requests we - // can provide such a handle if the file exists. - bool created; - if ((request_->load_flags() & net::LOAD_ENABLE_DOWNLOAD_FILE) && - stream_.IsOpen()) { - info->response_data_file = - base::CreatePlatformFile(file_path_.ToWStringHack(), - base::PLATFORM_FILE_OPEN | - base::PLATFORM_FILE_READ | - base::PLATFORM_FILE_ASYNC, - &created); - } -} - void URLRequestFileJob::SetExtraRequestHeaders(const std::string& headers) { // We only care about "Range" header here. std::vector<net::HttpByteRange> ranges; diff --git a/net/url_request/url_request_file_job.h b/net/url_request/url_request_file_job.h index 108a7cf..f7da8c1 100644 --- a/net/url_request/url_request_file_job.h +++ b/net/url_request/url_request_file_job.h @@ -31,7 +31,6 @@ class URLRequestFileJob : public URLRequestJob { virtual bool GetContentEncodings( std::vector<Filter::FilterType>* encoding_type); virtual bool GetMimeType(std::string* mime_type) const; - virtual void GetResponseInfo(net::HttpResponseInfo* info); virtual void SetExtraRequestHeaders(const std::string& headers); static URLRequest::ProtocolFactory Factory; |