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

Side by Side Diff: net/url_request/url_request_http_job.h

Issue 154473002: Support redirectUrl at onHeadersReceived in WebRequest / DWR API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass allowed_unsafe_redirect_url via delegate parameter instead of HttpResponseHeaders + fragment t… Created 6 years, 9 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 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 scoped_ptr<HttpFilterContext> filter_context_; 247 scoped_ptr<HttpFilterContext> filter_context_;
248 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; 248 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_;
249 249
250 CompletionCallback on_headers_received_callback_; 250 CompletionCallback on_headers_received_callback_;
251 251
252 // We allow the network delegate to modify a copy of the response headers. 252 // We allow the network delegate to modify a copy of the response headers.
253 // This prevents modifications of headers that are shared with the underlying 253 // This prevents modifications of headers that are shared with the underlying
254 // layers of the network stack. 254 // layers of the network stack.
255 scoped_refptr<HttpResponseHeaders> override_response_headers_; 255 scoped_refptr<HttpResponseHeaders> override_response_headers_;
256 256
257 // The network delegate can mark a URL as safe for redirection.
258 GURL allowed_unsafe_redirect_url_;
259
257 // Flag used to verify that |this| is not deleted while we are awaiting 260 // Flag used to verify that |this| is not deleted while we are awaiting
258 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. 261 // a callback from the NetworkDelegate. Used as a fail-fast mechanism.
259 // True if we are waiting a callback and 262 // True if we are waiting a callback and
260 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, 263 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet,
261 // to inform the NetworkDelegate that it may not call back. 264 // to inform the NetworkDelegate that it may not call back.
262 bool awaiting_callback_; 265 bool awaiting_callback_;
263 266
264 const HttpUserAgentSettings* http_user_agent_settings_; 267 const HttpUserAgentSettings* http_user_agent_settings_;
265 268
266 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 269 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
267 }; 270 };
268 271
269 } // namespace net 272 } // namespace net
270 273
271 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 274 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698