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

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

Issue 1847383003: CREDENTIAL: Rework the integration with Fetch (2/2) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-serialized
Patch Set: unittest Created 4 years, 8 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
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 <utility> 9 #include <utility>
10 10
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 request->should_reset_appcache = request_info.should_reset_appcache; 759 request->should_reset_appcache = request_info.should_reset_appcache;
760 request->fetch_request_mode = request_info.fetch_request_mode; 760 request->fetch_request_mode = request_info.fetch_request_mode;
761 request->fetch_credentials_mode = request_info.fetch_credentials_mode; 761 request->fetch_credentials_mode = request_info.fetch_credentials_mode;
762 request->fetch_redirect_mode = request_info.fetch_redirect_mode; 762 request->fetch_redirect_mode = request_info.fetch_redirect_mode;
763 request->fetch_request_context_type = request_info.fetch_request_context_type; 763 request->fetch_request_context_type = request_info.fetch_request_context_type;
764 request->fetch_frame_type = request_info.fetch_frame_type; 764 request->fetch_frame_type = request_info.fetch_frame_type;
765 request->enable_load_timing = request_info.enable_load_timing; 765 request->enable_load_timing = request_info.enable_load_timing;
766 request->enable_upload_progress = request_info.enable_upload_progress; 766 request->enable_upload_progress = request_info.enable_upload_progress;
767 request->do_not_prompt_for_login = request_info.do_not_prompt_for_login; 767 request->do_not_prompt_for_login = request_info.do_not_prompt_for_login;
768 request->report_raw_headers = request_info.report_raw_headers; 768 request->report_raw_headers = request_info.report_raw_headers;
769 request->empty_body_in_service_worker =
770 request_info.empty_body_in_service_worker;
769 771
770 if ((request_info.referrer.policy == blink::WebReferrerPolicyDefault || 772 if ((request_info.referrer.policy == blink::WebReferrerPolicyDefault ||
771 request_info.referrer.policy == 773 request_info.referrer.policy ==
772 blink::WebReferrerPolicyNoReferrerWhenDowngrade) && 774 blink::WebReferrerPolicyNoReferrerWhenDowngrade) &&
773 request_info.referrer.url.SchemeIsCryptographic() && 775 request_info.referrer.url.SchemeIsCryptographic() &&
774 !request_info.url.SchemeIsCryptographic()) { 776 !request_info.url.SchemeIsCryptographic()) {
775 LOG(FATAL) << "Trying to send secure referrer for insecure request " 777 LOG(FATAL) << "Trying to send secure referrer for insecure request "
776 << "without an appropriate referrer policy.\n" 778 << "without an appropriate referrer policy.\n"
777 << "URL = " << request_info.url << "\n" 779 << "URL = " << request_info.url << "\n"
778 << "Referrer = " << request_info.referrer.url; 780 << "Referrer = " << request_info.referrer.url;
(...skipping 29 matching lines...) Expand all
808 *frame_origin = extra_data->frame_origin(); 810 *frame_origin = extra_data->frame_origin();
809 return request; 811 return request;
810 } 812 }
811 813
812 void ResourceDispatcher::SetResourceSchedulingFilter( 814 void ResourceDispatcher::SetResourceSchedulingFilter(
813 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { 815 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) {
814 resource_scheduling_filter_ = resource_scheduling_filter; 816 resource_scheduling_filter_ = resource_scheduling_filter;
815 } 817 }
816 818
817 } // namespace content 819 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698