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

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

Issue 1271733002: [2/3 chromium] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add _MODE to avoid compile error at Windows. 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
« 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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 request->resource_type = request_info.request_type; 743 request->resource_type = request_info.request_type;
744 request->priority = request_info.priority; 744 request->priority = request_info.priority;
745 request->request_context = request_info.request_context; 745 request->request_context = request_info.request_context;
746 request->appcache_host_id = request_info.appcache_host_id; 746 request->appcache_host_id = request_info.appcache_host_id;
747 request->download_to_file = request_info.download_to_file; 747 request->download_to_file = request_info.download_to_file;
748 request->has_user_gesture = request_info.has_user_gesture; 748 request->has_user_gesture = request_info.has_user_gesture;
749 request->skip_service_worker = request_info.skip_service_worker; 749 request->skip_service_worker = request_info.skip_service_worker;
750 request->should_reset_appcache = request_info.should_reset_appcache; 750 request->should_reset_appcache = request_info.should_reset_appcache;
751 request->fetch_request_mode = request_info.fetch_request_mode; 751 request->fetch_request_mode = request_info.fetch_request_mode;
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_request_context_type = request_info.fetch_request_context_type; 754 request->fetch_request_context_type = request_info.fetch_request_context_type;
754 request->fetch_frame_type = request_info.fetch_frame_type; 755 request->fetch_frame_type = request_info.fetch_frame_type;
755 request->enable_load_timing = request_info.enable_load_timing; 756 request->enable_load_timing = request_info.enable_load_timing;
756 request->enable_upload_progress = request_info.enable_upload_progress; 757 request->enable_upload_progress = request_info.enable_upload_progress;
757 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;
758 759
759 if ((request_info.referrer.policy == blink::WebReferrerPolicyDefault || 760 if ((request_info.referrer.policy == blink::WebReferrerPolicyDefault ||
760 request_info.referrer.policy == 761 request_info.referrer.policy ==
761 blink::WebReferrerPolicyNoReferrerWhenDowngrade) && 762 blink::WebReferrerPolicyNoReferrerWhenDowngrade) &&
762 request_info.referrer.url.SchemeIsCryptographic() && 763 request_info.referrer.url.SchemeIsCryptographic() &&
(...skipping 25 matching lines...) Expand all
788 extra_data->transferred_request_request_id(); 789 extra_data->transferred_request_request_id();
789 request->service_worker_provider_id = 790 request->service_worker_provider_id =
790 extra_data->service_worker_provider_id(); 791 extra_data->service_worker_provider_id();
791 request->request_body = request_body; 792 request->request_body = request_body;
792 if (frame_origin) 793 if (frame_origin)
793 *frame_origin = extra_data->frame_origin(); 794 *frame_origin = extra_data->frame_origin();
794 return request.Pass(); 795 return request.Pass();
795 } 796 }
796 797
797 } // namespace content 798 } // 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