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

Side by Side Diff: chrome/browser/renderer_host/resource_dispatcher_host.h

Issue 155897: Add support to URLRequest for deferring redirects.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then fowards the messages from the 7 // dispatches them to URLRequests. It then fowards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 // Force cancels any pending requests for the given process. 303 // Force cancels any pending requests for the given process.
304 void CancelRequestsForProcess(int process_id); 304 void CancelRequestsForProcess(int process_id);
305 305
306 // Force cancels any pending requests for the given route id. This method 306 // Force cancels any pending requests for the given route id. This method
307 // acts like CancelRequestsForProcess when route_id is -1. 307 // acts like CancelRequestsForProcess when route_id is -1.
308 void CancelRequestsForRoute(int process_id, int route_id); 308 void CancelRequestsForRoute(int process_id, int route_id);
309 309
310 // URLRequest::Delegate 310 // URLRequest::Delegate
311 virtual void OnReceivedRedirect(URLRequest* request, 311 virtual void OnReceivedRedirect(URLRequest* request,
312 const GURL& new_url); 312 const GURL& new_url,
313 bool* defer_redirect);
313 virtual void OnAuthRequired(URLRequest* request, 314 virtual void OnAuthRequired(URLRequest* request,
314 net::AuthChallengeInfo* auth_info); 315 net::AuthChallengeInfo* auth_info);
315 virtual void OnCertificateRequested( 316 virtual void OnCertificateRequested(
316 URLRequest* request, 317 URLRequest* request,
317 net::SSLCertRequestInfo* cert_request_info); 318 net::SSLCertRequestInfo* cert_request_info);
318 virtual void OnSSLCertificateError(URLRequest* request, 319 virtual void OnSSLCertificateError(URLRequest* request,
319 int cert_error, 320 int cert_error,
320 net::X509Certificate* cert); 321 net::X509Certificate* cert);
321 virtual void OnResponseStarted(URLRequest* request); 322 virtual void OnResponseStarted(URLRequest* request);
322 virtual void OnReadCompleted(URLRequest* request, int bytes_read); 323 virtual void OnReadCompleted(URLRequest* request, int bytes_read);
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 // Used during IPC message dispatching so that the handlers can get a pointer 575 // Used during IPC message dispatching so that the handlers can get a pointer
575 // to the source of the message. 576 // to the source of the message.
576 Receiver* receiver_; 577 Receiver* receiver_;
577 578
578 static bool g_is_http_prioritization_enabled; 579 static bool g_is_http_prioritization_enabled;
579 580
580 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); 581 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
581 }; 582 };
582 583
583 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 584 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698