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

Side by Side Diff: content/browser/loader/resource_request_info_impl.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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 0, // parent_render_frame_id 54 0, // parent_render_frame_id
55 resource_type, // resource_type 55 resource_type, // resource_type
56 ui::PAGE_TRANSITION_LINK, // transition_type 56 ui::PAGE_TRANSITION_LINK, // transition_type
57 false, // should_replace_current_entry 57 false, // should_replace_current_entry
58 false, // is_download 58 false, // is_download
59 false, // is_stream 59 false, // is_stream
60 allow_download, // allow_download 60 allow_download, // allow_download
61 false, // has_user_gesture 61 false, // has_user_gesture
62 false, // enable load timing 62 false, // enable load timing
63 false, // enable upload progress 63 false, // enable upload progress
64 false, // do_not_prompt_for_login
64 blink::WebReferrerPolicyDefault, // referrer_policy 65 blink::WebReferrerPolicyDefault, // referrer_policy
65 blink::WebPageVisibilityStateVisible, // visibility_state 66 blink::WebPageVisibilityStateVisible, // visibility_state
66 context, // context 67 context, // context
67 base::WeakPtr<ResourceMessageFilter>(), // filter 68 base::WeakPtr<ResourceMessageFilter>(), // filter
68 is_async); // is_async 69 is_async); // is_async
69 info->AssociateWithRequest(request); 70 info->AssociateWithRequest(request);
70 } 71 }
71 72
72 // static 73 // static
73 bool ResourceRequestInfo::GetRenderFrameForRequest( 74 bool ResourceRequestInfo::GetRenderFrameForRequest(
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 int parent_render_frame_id, 111 int parent_render_frame_id,
111 ResourceType resource_type, 112 ResourceType resource_type,
112 ui::PageTransition transition_type, 113 ui::PageTransition transition_type,
113 bool should_replace_current_entry, 114 bool should_replace_current_entry,
114 bool is_download, 115 bool is_download,
115 bool is_stream, 116 bool is_stream,
116 bool allow_download, 117 bool allow_download,
117 bool has_user_gesture, 118 bool has_user_gesture,
118 bool enable_load_timing, 119 bool enable_load_timing,
119 bool enable_upload_progress, 120 bool enable_upload_progress,
121 bool do_not_prompt_for_login,
120 blink::WebReferrerPolicy referrer_policy, 122 blink::WebReferrerPolicy referrer_policy,
121 blink::WebPageVisibilityState visibility_state, 123 blink::WebPageVisibilityState visibility_state,
122 ResourceContext* context, 124 ResourceContext* context,
123 base::WeakPtr<ResourceMessageFilter> filter, 125 base::WeakPtr<ResourceMessageFilter> filter,
124 bool is_async) 126 bool is_async)
125 : cross_site_handler_(NULL), 127 : cross_site_handler_(NULL),
126 detachable_handler_(NULL), 128 detachable_handler_(NULL),
127 process_type_(process_type), 129 process_type_(process_type),
128 child_id_(child_id), 130 child_id_(child_id),
129 route_id_(route_id), 131 route_id_(route_id),
130 origin_pid_(origin_pid), 132 origin_pid_(origin_pid),
131 request_id_(request_id), 133 request_id_(request_id),
132 render_frame_id_(render_frame_id), 134 render_frame_id_(render_frame_id),
133 is_main_frame_(is_main_frame), 135 is_main_frame_(is_main_frame),
134 parent_is_main_frame_(parent_is_main_frame), 136 parent_is_main_frame_(parent_is_main_frame),
135 parent_render_frame_id_(parent_render_frame_id), 137 parent_render_frame_id_(parent_render_frame_id),
136 should_replace_current_entry_(should_replace_current_entry), 138 should_replace_current_entry_(should_replace_current_entry),
137 is_download_(is_download), 139 is_download_(is_download),
138 is_stream_(is_stream), 140 is_stream_(is_stream),
139 allow_download_(allow_download), 141 allow_download_(allow_download),
140 has_user_gesture_(has_user_gesture), 142 has_user_gesture_(has_user_gesture),
141 enable_load_timing_(enable_load_timing), 143 enable_load_timing_(enable_load_timing),
142 enable_upload_progress_(enable_upload_progress), 144 enable_upload_progress_(enable_upload_progress),
145 do_not_prompt_for_login_(do_not_prompt_for_login),
143 was_ignored_by_handler_(false), 146 was_ignored_by_handler_(false),
144 counted_as_in_flight_request_(false), 147 counted_as_in_flight_request_(false),
145 resource_type_(resource_type), 148 resource_type_(resource_type),
146 transition_type_(transition_type), 149 transition_type_(transition_type),
147 memory_cost_(0), 150 memory_cost_(0),
148 referrer_policy_(referrer_policy), 151 referrer_policy_(referrer_policy),
149 visibility_state_(visibility_state), 152 visibility_state_(visibility_state),
150 context_(context), 153 context_(context),
151 filter_(filter), 154 filter_(filter),
152 is_async_(is_async) { 155 is_async_(is_async) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 base::WeakPtr<ResourceMessageFilter> filter) { 272 base::WeakPtr<ResourceMessageFilter> filter) {
270 child_id_ = child_id; 273 child_id_ = child_id;
271 route_id_ = route_id; 274 route_id_ = route_id;
272 origin_pid_ = origin_pid; 275 origin_pid_ = origin_pid;
273 request_id_ = request_id; 276 request_id_ = request_id;
274 parent_render_frame_id_ = parent_render_frame_id; 277 parent_render_frame_id_ = parent_render_frame_id;
275 filter_ = filter; 278 filter_ = filter;
276 } 279 }
277 280
278 } // namespace content 281 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.h ('k') | content/browser/loader/resource_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698