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 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void RequestBeginning(net::URLRequest* request, | 50 virtual void RequestBeginning(net::URLRequest* request, |
51 ResourceContext* resource_context, | 51 ResourceContext* resource_context, |
52 AppCacheService* appcache_service, | 52 AppCacheService* appcache_service, |
53 ResourceType resource_type, | 53 ResourceType resource_type, |
54 ScopedVector<ResourceThrottle>* throttles); | 54 ScopedVector<ResourceThrottle>* throttles); |
55 | 55 |
56 // Allows an embedder to add additional resource handlers for a download. | 56 // Allows an embedder to add additional resource handlers for a download. |
57 // |must_download| is set if the request must be handled as a download. | 57 // |must_download| is set if the request must be handled as a download. |
58 virtual void DownloadStarting(net::URLRequest* request, | 58 virtual void DownloadStarting(net::URLRequest* request, |
59 ResourceContext* resource_context, | 59 ResourceContext* resource_context, |
60 int child_id, | |
61 int route_id, | |
62 bool is_content_initiated, | 60 bool is_content_initiated, |
63 bool must_download, | 61 bool must_download, |
64 ScopedVector<ResourceThrottle>* throttles); | 62 ScopedVector<ResourceThrottle>* throttles); |
65 | 63 |
66 // Creates a ResourceDispatcherHostLoginDelegate that asks the user for a | 64 // Creates a ResourceDispatcherHostLoginDelegate that asks the user for a |
67 // username and password. | 65 // username and password. |
68 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 66 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
69 net::AuthChallengeInfo* auth_info, | 67 net::AuthChallengeInfo* auth_info, |
70 net::URLRequest* request); | 68 net::URLRequest* request); |
71 | 69 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 virtual void OnAbortedFrameLoad(const GURL& url, | 140 virtual void OnAbortedFrameLoad(const GURL& url, |
143 base::TimeDelta request_loading_time); | 141 base::TimeDelta request_loading_time); |
144 | 142 |
145 protected: | 143 protected: |
146 virtual ~ResourceDispatcherHostDelegate(); | 144 virtual ~ResourceDispatcherHostDelegate(); |
147 }; | 145 }; |
148 | 146 |
149 } // namespace content | 147 } // namespace content |
150 | 148 |
151 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 149 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |