OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 const GURL& new_url, | 186 const GURL& new_url, |
187 bool* defer_redirect); | 187 bool* defer_redirect); |
188 virtual void OnAuthRequired(net::URLRequest* request, | 188 virtual void OnAuthRequired(net::URLRequest* request, |
189 net::AuthChallengeInfo* auth_info); | 189 net::AuthChallengeInfo* auth_info); |
190 virtual void OnCertificateRequested( | 190 virtual void OnCertificateRequested( |
191 net::URLRequest* request, | 191 net::URLRequest* request, |
192 net::SSLCertRequestInfo* cert_request_info); | 192 net::SSLCertRequestInfo* cert_request_info); |
193 virtual void OnSSLCertificateError(net::URLRequest* request, | 193 virtual void OnSSLCertificateError(net::URLRequest* request, |
194 int cert_error, | 194 int cert_error, |
195 net::X509Certificate* cert); | 195 net::X509Certificate* cert); |
| 196 virtual void OnTLSLoginRequired( |
| 197 net::URLRequest* request, |
| 198 net::AuthChallengeInfo* auth_info); |
196 virtual void OnGetCookies(net::URLRequest* request, | 199 virtual void OnGetCookies(net::URLRequest* request, |
197 bool blocked_by_policy); | 200 bool blocked_by_policy); |
198 virtual void OnSetCookie(net::URLRequest* request, | 201 virtual void OnSetCookie(net::URLRequest* request, |
199 const std::string& cookie_line, | 202 const std::string& cookie_line, |
200 const net::CookieOptions& options, | 203 const net::CookieOptions& options, |
201 bool blocked_by_policy); | 204 bool blocked_by_policy); |
202 virtual void OnResponseStarted(net::URLRequest* request); | 205 virtual void OnResponseStarted(net::URLRequest* request); |
203 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read); | 206 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read); |
204 void OnResponseCompleted(net::URLRequest* request); | 207 void OnResponseCompleted(net::URLRequest* request); |
205 | 208 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 // Used during IPC message dispatching so that the handlers can get a pointer | 510 // Used during IPC message dispatching so that the handlers can get a pointer |
508 // to the source of the message. | 511 // to the source of the message. |
509 ResourceMessageFilter* filter_; | 512 ResourceMessageFilter* filter_; |
510 | 513 |
511 static bool is_prefetch_enabled_; | 514 static bool is_prefetch_enabled_; |
512 | 515 |
513 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 516 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
514 }; | 517 }; |
515 | 518 |
516 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 519 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |