OLD | NEW |
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 CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // the content layer has just added its own resource handlers; it's false if | 65 // the content layer has just added its own resource handlers; it's false if |
66 // this was originally a non-download request that had some resource handlers | 66 // this was originally a non-download request that had some resource handlers |
67 // applied already and now we found out it's a download. | 67 // applied already and now we found out it's a download. |
68 // |in_complete| is true if this is invoked from |OnResponseCompleted|. | 68 // |in_complete| is true if this is invoked from |OnResponseCompleted|. |
69 virtual void DownloadStarting( | 69 virtual void DownloadStarting( |
70 net::URLRequest* request, | 70 net::URLRequest* request, |
71 ResourceContext* resource_context, | 71 ResourceContext* resource_context, |
72 int child_id, | 72 int child_id, |
73 int route_id, | 73 int route_id, |
74 int request_id, | 74 int request_id, |
75 bool is_new_request, | 75 bool is_content_initiated, |
76 ScopedVector<ResourceThrottle>* throttles); | 76 ScopedVector<ResourceThrottle>* throttles); |
77 | 77 |
78 // Called when an SSL Client Certificate is requested. If false is returned, | 78 // Called when an SSL Client Certificate is requested. If false is returned, |
79 // the request is canceled. Otherwise, the certificate is chosen. | 79 // the request is canceled. Otherwise, the certificate is chosen. |
80 virtual bool AcceptSSLClientCertificateRequest( | 80 virtual bool AcceptSSLClientCertificateRequest( |
81 net::URLRequest* request, | 81 net::URLRequest* request, |
82 net::SSLCertRequestInfo* cert_request_info); | 82 net::SSLCertRequestInfo* cert_request_info); |
83 | 83 |
84 // Called when authentication is required and credentials are needed. If | 84 // Called when authentication is required and credentials are needed. If |
85 // false is returned, CancelAuth() is called on the URLRequest and the error | 85 // false is returned, CancelAuth() is called on the URLRequest and the error |
(...skipping 29 matching lines...) Expand all Loading... |
115 ResourceResponse* response); | 115 ResourceResponse* response); |
116 | 116 |
117 protected: | 117 protected: |
118 ResourceDispatcherHostDelegate(); | 118 ResourceDispatcherHostDelegate(); |
119 virtual ~ResourceDispatcherHostDelegate(); | 119 virtual ~ResourceDispatcherHostDelegate(); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace content | 122 } // namespace content |
123 | 123 |
124 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 124 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |