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

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

Issue 1294243004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style, placeholders, all that stuff Created 5 years, 4 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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 request->fetch_credentials_mode = request_info.fetch_credentials_mode; 752 request->fetch_credentials_mode = request_info.fetch_credentials_mode;
753 request->fetch_redirect_mode = request_info.fetch_redirect_mode; 753 request->fetch_redirect_mode = request_info.fetch_redirect_mode;
754 request->fetch_request_context_type = request_info.fetch_request_context_type; 754 request->fetch_request_context_type = request_info.fetch_request_context_type;
755 request->fetch_frame_type = request_info.fetch_frame_type; 755 request->fetch_frame_type = request_info.fetch_frame_type;
756 request->enable_load_timing = request_info.enable_load_timing; 756 request->enable_load_timing = request_info.enable_load_timing;
757 request->enable_upload_progress = request_info.enable_upload_progress; 757 request->enable_upload_progress = request_info.enable_upload_progress;
758 request->do_not_prompt_for_login = request_info.do_not_prompt_for_login; 758 request->do_not_prompt_for_login = request_info.do_not_prompt_for_login;
759 759
760 if ((request_info.referrer.policy == blink::WebReferrerPolicyDefault || 760 if ((request_info.referrer.policy == blink::WebReferrerPolicyDefault ||
761 request_info.referrer.policy == 761 request_info.referrer.policy ==
762 blink::WebReferrerPolicyNoReferrerWhenDowngrade) && 762 blink::WebReferrerPolicyNoReferrerWhenDowngrade) &&
763 request_info.referrer.url.SchemeIsCryptographic() && 763 request_info.referrer.url.SchemeIsCryptographic() &&
764 !request_info.url.SchemeIsCryptographic()) { 764 !request_info.url.SchemeIsCryptographic()) {
765 LOG(FATAL) << "Trying to send secure referrer for insecure request " 765 LOG(FATAL) << "Trying to send secure referrer for insecure request "
766 << "without an appropriate referrer policy.\n" 766 << "without an appropriate referrer policy.\n"
767 << "URL = " << request_info.url << "\n" 767 << "URL = " << request_info.url << "\n"
768 << "Referrer = " << request_info.referrer.url; 768 << "Referrer = " << request_info.referrer.url;
769 } 769 }
770 770
771 const RequestExtraData kEmptyData; 771 const RequestExtraData kEmptyData;
772 const RequestExtraData* extra_data; 772 const RequestExtraData* extra_data;
(...skipping 16 matching lines...) Expand all
789 extra_data->transferred_request_request_id(); 789 extra_data->transferred_request_request_id();
790 request->service_worker_provider_id = 790 request->service_worker_provider_id =
791 extra_data->service_worker_provider_id(); 791 extra_data->service_worker_provider_id();
792 request->request_body = request_body; 792 request->request_body = request_body;
793 if (frame_origin) 793 if (frame_origin)
794 *frame_origin = extra_data->frame_origin(); 794 *frame_origin = extra_data->frame_origin();
795 return request.Pass(); 795 return request.Pass();
796 } 796 }
797 797
798 } // namespace content 798 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698