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

Side by Side Diff: content/child/resource_dispatcher.cc

Issue 786423002: Get rid of net::DO_NOT_PROMPT_FOR_LOGIN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete flag from iOS code Created 5 years, 11 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
« no previous file with comments | « content/child/request_info.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/child/resource_dispatcher.h" 7 #include "content/child/resource_dispatcher.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 request_.download_to_file = request_info.download_to_file; 129 request_.download_to_file = request_info.download_to_file;
130 request_.has_user_gesture = request_info.has_user_gesture; 130 request_.has_user_gesture = request_info.has_user_gesture;
131 request_.skip_service_worker = request_info.skip_service_worker; 131 request_.skip_service_worker = request_info.skip_service_worker;
132 request_.should_reset_appcache = request_info.should_reset_appcache; 132 request_.should_reset_appcache = request_info.should_reset_appcache;
133 request_.fetch_request_mode = request_info.fetch_request_mode; 133 request_.fetch_request_mode = request_info.fetch_request_mode;
134 request_.fetch_credentials_mode = request_info.fetch_credentials_mode; 134 request_.fetch_credentials_mode = request_info.fetch_credentials_mode;
135 request_.fetch_request_context_type = request_info.fetch_request_context_type; 135 request_.fetch_request_context_type = request_info.fetch_request_context_type;
136 request_.fetch_frame_type = request_info.fetch_frame_type; 136 request_.fetch_frame_type = request_info.fetch_frame_type;
137 request_.enable_load_timing = request_info.enable_load_timing; 137 request_.enable_load_timing = request_info.enable_load_timing;
138 request_.enable_upload_progress = request_info.enable_upload_progress; 138 request_.enable_upload_progress = request_info.enable_upload_progress;
139 request_.do_not_prompt_for_login = request_info.do_not_prompt_for_login;
139 140
140 if ((request_info.referrer.policy == blink::WebReferrerPolicyDefault || 141 if ((request_info.referrer.policy == blink::WebReferrerPolicyDefault ||
141 request_info.referrer.policy == 142 request_info.referrer.policy ==
142 blink::WebReferrerPolicyNoReferrerWhenDowngrade) && 143 blink::WebReferrerPolicyNoReferrerWhenDowngrade) &&
143 request_info.referrer.url.SchemeIsSecure() && 144 request_info.referrer.url.SchemeIsSecure() &&
144 !request_info.url.SchemeIsSecure()) { 145 !request_info.url.SchemeIsSecure()) {
145 // Debug code for crbug.com/422871 146 // Debug code for crbug.com/422871
146 base::debug::DumpWithoutCrashing(); 147 base::debug::DumpWithoutCrashing();
147 DLOG(FATAL) << "Trying to send secure referrer for insecure request " 148 DLOG(FATAL) << "Trying to send secure referrer for insecure request "
148 << "without an appropriate referrer policy.\n" 149 << "without an appropriate referrer policy.\n"
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { 897 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) {
897 while (!queue->empty()) { 898 while (!queue->empty()) {
898 IPC::Message* message = queue->front(); 899 IPC::Message* message = queue->front();
899 ReleaseResourcesInDataMessage(*message); 900 ReleaseResourcesInDataMessage(*message);
900 queue->pop_front(); 901 queue->pop_front();
901 delete message; 902 delete message;
902 } 903 }
903 } 904 }
904 905
905 } // namespace content 906 } // namespace content
OLDNEW
« no previous file with comments | « content/child/request_info.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698