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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 23830007: Support byte range requests when routing resource requests directly through the browser process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" 7 #include "content/browser/loader/resource_dispatcher_host_impl.h"
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 // TODO(darin): Do we really need all of these URLRequest setters in the 982 // TODO(darin): Do we really need all of these URLRequest setters in the
983 // transferred navigation case? 983 // transferred navigation case?
984 984
985 request->set_load_flags(load_flags); 985 request->set_load_flags(load_flags);
986 request->SetPriority(request_data.priority); 986 request->SetPriority(request_data.priority);
987 987
988 // Resolve elements from request_body and prepare upload data. 988 // Resolve elements from request_body and prepare upload data.
989 if (request_data.request_body.get()) { 989 if (request_data.request_body.get()) {
990 webkit_blob::BlobStorageContext* blob_context = NULL; 990 webkit_blob::BlobStorageContext* blob_context = NULL;
991 if (filter_->blob_storage_context()) 991 if (filter_->blob_storage_context())
992 blob_context = filter_->blob_storage_context()->context(), 992 blob_context = filter_->blob_storage_context()->context();
993 request->set_upload(UploadDataStreamBuilder::Build( 993 request->set_upload(UploadDataStreamBuilder::Build(
994 request_data.request_body.get(), 994 request_data.request_body.get(),
995 blob_context, 995 blob_context,
996 filter_->file_system_context(), 996 filter_->file_system_context(),
997 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE) 997 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)
998 .get())); 998 .get()));
999 } 999 }
1000 1000
1001 bool allow_download = request_data.allow_download && 1001 bool allow_download = request_data.allow_download &&
1002 ResourceType::IsFrame(request_data.resource_type); 1002 ResourceType::IsFrame(request_data.resource_type);
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 if ((load_flags & net::LOAD_REPORT_RAW_HEADERS) 1868 if ((load_flags & net::LOAD_REPORT_RAW_HEADERS)
1869 && !policy->CanReadRawCookies(child_id)) { 1869 && !policy->CanReadRawCookies(child_id)) {
1870 VLOG(1) << "Denied unauthorized request for raw headers"; 1870 VLOG(1) << "Denied unauthorized request for raw headers";
1871 load_flags &= ~net::LOAD_REPORT_RAW_HEADERS; 1871 load_flags &= ~net::LOAD_REPORT_RAW_HEADERS;
1872 } 1872 }
1873 1873
1874 return load_flags; 1874 return load_flags;
1875 } 1875 }
1876 1876
1877 } // namespace content 1877 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_impl.cc ('k') | content/child/npapi/plugin_url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698