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

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

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TestShellNetworkDelegate Created 8 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 | Annotate | Revision Log
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 // 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 forwards the messages from the 7 // dispatches them to URLRequests. It then forwards 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 const GURL& new_url, 177 const GURL& new_url,
178 bool* defer_redirect) OVERRIDE; 178 bool* defer_redirect) OVERRIDE;
179 virtual void OnAuthRequired(net::URLRequest* request, 179 virtual void OnAuthRequired(net::URLRequest* request,
180 net::AuthChallengeInfo* auth_info) OVERRIDE; 180 net::AuthChallengeInfo* auth_info) OVERRIDE;
181 virtual void OnCertificateRequested( 181 virtual void OnCertificateRequested(
182 net::URLRequest* request, 182 net::URLRequest* request,
183 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; 183 net::SSLCertRequestInfo* cert_request_info) OVERRIDE;
184 virtual void OnSSLCertificateError(net::URLRequest* request, 184 virtual void OnSSLCertificateError(net::URLRequest* request,
185 const net::SSLInfo& ssl_info, 185 const net::SSLInfo& ssl_info,
186 bool fatal) OVERRIDE; 186 bool fatal) OVERRIDE;
187 virtual bool CanGetCookies(const net::URLRequest* request,
188 const net::CookieList& cookie_list) const OVERRIDE;
189 virtual bool CanSetCookie(const net::URLRequest* request,
190 const std::string& cookie_line,
191 net::CookieOptions* options) const OVERRIDE;
192 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; 187 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE;
193 virtual void OnReadCompleted(net::URLRequest* request, 188 virtual void OnReadCompleted(net::URLRequest* request,
194 int bytes_read) OVERRIDE; 189 int bytes_read) OVERRIDE;
195 190
196 void OnUserGesture(TabContents* tab); 191 void OnUserGesture(TabContents* tab);
197 192
198 // Helper functions to get the dispatcher's request info for the request. 193 // Helper functions to get the dispatcher's request info for the request.
199 // If the dispatcher didn't create the request then NULL is returned. 194 // If the dispatcher didn't create the request then NULL is returned.
200 static ResourceDispatcherHostRequestInfo* InfoForRequest( 195 static ResourceDispatcherHostRequestInfo* InfoForRequest(
201 net::URLRequest* request); 196 net::URLRequest* request);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 // Maps the request ID of request that is being transferred to a new RVH 518 // Maps the request ID of request that is being transferred to a new RVH
524 // to the respective request. 519 // to the respective request.
525 typedef std::map<content::GlobalRequestID, net::URLRequest*> 520 typedef std::map<content::GlobalRequestID, net::URLRequest*>
526 TransferredNavigations; 521 TransferredNavigations;
527 TransferredNavigations transferred_navigations_; 522 TransferredNavigations transferred_navigations_;
528 523
529 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); 524 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
530 }; 525 };
531 526
532 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 527 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698