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

Side by Side Diff: content/browser/loader/resource_request_info_impl.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: 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 #include "content/browser/loader/resource_request_info_impl.h" 5 #include "content/browser/loader/resource_request_info_impl.h"
6 6
7 #include "content/browser/loader/global_routing_id.h" 7 #include "content/browser/loader/global_routing_id.h"
8 #include "content/browser/loader/resource_message_filter.h" 8 #include "content/browser/loader/resource_message_filter.h"
9 #include "content/common/net/url_request_user_data.h" 9 #include "content/common/net/url_request_user_data.h"
10 #include "content/public/browser/global_request_id.h" 10 #include "content/public/browser/global_request_id.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 -1, // frame_tree_node_id 49 -1, // frame_tree_node_id
50 0, // origin_pid 50 0, // origin_pid
51 0, // request_id 51 0, // request_id
52 render_frame_id, // render_frame_id 52 render_frame_id, // render_frame_id
53 is_main_frame, // is_main_frame 53 is_main_frame, // is_main_frame
54 parent_is_main_frame, // parent_is_main_frame 54 parent_is_main_frame, // parent_is_main_frame
55 0, // parent_render_frame_id 55 0, // parent_render_frame_id
56 resource_type, // resource_type 56 resource_type, // resource_type
57 ui::PAGE_TRANSITION_LINK, // transition_type 57 ui::PAGE_TRANSITION_LINK, // transition_type
58 false, // should_replace_current_entry 58 false, // should_replace_current_entry
59 FETCH_REDIRECT_MODE_FOLLOW,
falken 2015/08/07 07:43:46 i'd follow the // fetch_redirect_mode convention h
horo 2015/08/07 09:42:22 Done.
59 false, // is_download 60 false, // is_download
60 false, // is_stream 61 false, // is_stream
61 allow_download, // allow_download 62 allow_download, // allow_download
62 false, // has_user_gesture 63 false, // has_user_gesture
63 false, // enable load timing 64 false, // enable load timing
64 request->has_upload(), // enable upload progress 65 request->has_upload(), // enable upload progress
65 false, // do_not_prompt_for_login 66 false, // do_not_prompt_for_login
66 blink::WebReferrerPolicyDefault, // referrer_policy 67 blink::WebReferrerPolicyDefault, // referrer_policy
67 blink::WebPageVisibilityStateVisible, // visibility_state 68 blink::WebPageVisibilityStateVisible, // visibility_state
68 context, // context 69 context, // context
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 int frame_tree_node_id, 108 int frame_tree_node_id,
108 int origin_pid, 109 int origin_pid,
109 int request_id, 110 int request_id,
110 int render_frame_id, 111 int render_frame_id,
111 bool is_main_frame, 112 bool is_main_frame,
112 bool parent_is_main_frame, 113 bool parent_is_main_frame,
113 int parent_render_frame_id, 114 int parent_render_frame_id,
114 ResourceType resource_type, 115 ResourceType resource_type,
115 ui::PageTransition transition_type, 116 ui::PageTransition transition_type,
116 bool should_replace_current_entry, 117 bool should_replace_current_entry,
118 FetchRedirectMode fetch_redirect_mode,
117 bool is_download, 119 bool is_download,
118 bool is_stream, 120 bool is_stream,
119 bool allow_download, 121 bool allow_download,
120 bool has_user_gesture, 122 bool has_user_gesture,
121 bool enable_load_timing, 123 bool enable_load_timing,
122 bool enable_upload_progress, 124 bool enable_upload_progress,
123 bool do_not_prompt_for_login, 125 bool do_not_prompt_for_login,
124 blink::WebReferrerPolicy referrer_policy, 126 blink::WebReferrerPolicy referrer_policy,
125 blink::WebPageVisibilityState visibility_state, 127 blink::WebPageVisibilityState visibility_state,
126 ResourceContext* context, 128 ResourceContext* context,
127 base::WeakPtr<ResourceMessageFilter> filter, 129 base::WeakPtr<ResourceMessageFilter> filter,
128 bool is_async) 130 bool is_async)
129 : cross_site_handler_(NULL), 131 : cross_site_handler_(NULL),
130 detachable_handler_(NULL), 132 detachable_handler_(NULL),
131 process_type_(process_type), 133 process_type_(process_type),
132 child_id_(child_id), 134 child_id_(child_id),
133 route_id_(route_id), 135 route_id_(route_id),
134 frame_tree_node_id_(frame_tree_node_id), 136 frame_tree_node_id_(frame_tree_node_id),
135 origin_pid_(origin_pid), 137 origin_pid_(origin_pid),
136 request_id_(request_id), 138 request_id_(request_id),
137 render_frame_id_(render_frame_id), 139 render_frame_id_(render_frame_id),
138 is_main_frame_(is_main_frame), 140 is_main_frame_(is_main_frame),
139 parent_is_main_frame_(parent_is_main_frame), 141 parent_is_main_frame_(parent_is_main_frame),
140 parent_render_frame_id_(parent_render_frame_id), 142 parent_render_frame_id_(parent_render_frame_id),
141 should_replace_current_entry_(should_replace_current_entry), 143 should_replace_current_entry_(should_replace_current_entry),
144 fetch_redirect_mode_(fetch_redirect_mode),
142 is_download_(is_download), 145 is_download_(is_download),
143 is_stream_(is_stream), 146 is_stream_(is_stream),
144 allow_download_(allow_download), 147 allow_download_(allow_download),
145 has_user_gesture_(has_user_gesture), 148 has_user_gesture_(has_user_gesture),
146 enable_load_timing_(enable_load_timing), 149 enable_load_timing_(enable_load_timing),
147 enable_upload_progress_(enable_upload_progress), 150 enable_upload_progress_(enable_upload_progress),
148 do_not_prompt_for_login_(do_not_prompt_for_login), 151 do_not_prompt_for_login_(do_not_prompt_for_login),
149 was_ignored_by_handler_(false), 152 was_ignored_by_handler_(false),
150 counted_as_in_flight_request_(false), 153 counted_as_in_flight_request_(false),
151 resource_type_(resource_type), 154 resource_type_(resource_type),
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 base::WeakPtr<ResourceMessageFilter> filter) { 278 base::WeakPtr<ResourceMessageFilter> filter) {
276 child_id_ = child_id; 279 child_id_ = child_id;
277 route_id_ = route_id; 280 route_id_ = route_id;
278 origin_pid_ = origin_pid; 281 origin_pid_ = origin_pid;
279 request_id_ = request_id; 282 request_id_ = request_id;
280 parent_render_frame_id_ = parent_render_frame_id; 283 parent_render_frame_id_ = parent_render_frame_id;
281 filter_ = filter; 284 filter_ = filter;
282 } 285 }
283 286
284 } // namespace content 287 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698