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

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

Issue 18346006: Update OS X to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 5 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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 974
975 // TODO(darin): Do we really need all of these URLRequest setters in the 975 // TODO(darin): Do we really need all of these URLRequest setters in the
976 // transferred navigation case? 976 // transferred navigation case?
977 977
978 request->set_load_flags(load_flags); 978 request->set_load_flags(load_flags);
979 request->SetPriority(request_data.priority); 979 request->SetPriority(request_data.priority);
980 980
981 // Resolve elements from request_body and prepare upload data. 981 // Resolve elements from request_body and prepare upload data.
982 if (request_data.request_body.get()) { 982 if (request_data.request_body.get()) {
983 request->set_upload(UploadDataStreamBuilder::Build( 983 request->set_upload(UploadDataStreamBuilder::Build(
984 request_data.request_body, 984 request_data.request_body.get(),
985 filter_->blob_storage_context()->controller(), 985 filter_->blob_storage_context()->controller(),
986 filter_->file_system_context(), 986 filter_->file_system_context(),
987 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE). 987 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)
988 get())); 988 .get()));
989 } 989 }
990 990
991 bool allow_download = request_data.allow_download && 991 bool allow_download = request_data.allow_download &&
992 ResourceType::IsFrame(request_data.resource_type); 992 ResourceType::IsFrame(request_data.resource_type);
993 993
994 // Make extra info and read footer (contains request ID). 994 // Make extra info and read footer (contains request ID).
995 ResourceRequestInfoImpl* extra_info = 995 ResourceRequestInfoImpl* extra_info =
996 new ResourceRequestInfoImpl( 996 new ResourceRequestInfoImpl(
997 process_type, 997 process_type,
998 child_id, 998 child_id,
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 if ((load_flags & net::LOAD_REPORT_RAW_HEADERS) 1871 if ((load_flags & net::LOAD_REPORT_RAW_HEADERS)
1872 && !policy->CanReadRawCookies(child_id)) { 1872 && !policy->CanReadRawCookies(child_id)) {
1873 VLOG(1) << "Denied unauthorized request for raw headers"; 1873 VLOG(1) << "Denied unauthorized request for raw headers";
1874 load_flags &= ~net::LOAD_REPORT_RAW_HEADERS; 1874 load_flags &= ~net::LOAD_REPORT_RAW_HEADERS;
1875 } 1875 }
1876 1876
1877 return load_flags; 1877 return load_flags;
1878 } 1878 }
1879 1879
1880 } // namespace content 1880 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_context_impl.cc ('k') | content/browser/loader/upload_data_stream_builder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698