Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Unified Diff: net/url_request/url_request_file_job.cc

Issue 113931: Remove code path that passes a file handle to the renderer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_file_job.h ('k') | webkit/glue/resource_loader_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_file_job.cc
===================================================================
--- net/url_request/url_request_file_job.cc (revision 17048)
+++ net/url_request/url_request_file_job.cc (working copy)
@@ -183,24 +183,6 @@
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;
« no previous file with comments | « net/url_request/url_request_file_job.h ('k') | webkit/glue/resource_loader_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698