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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 int route_id); | 97 int route_id); |
98 | 98 |
99 // Returns true if we should force the given resource to be downloaded. | 99 // Returns true if we should force the given resource to be downloaded. |
100 // Otherwise, the content layer decides. | 100 // Otherwise, the content layer decides. |
101 virtual bool ShouldForceDownloadResource( | 101 virtual bool ShouldForceDownloadResource( |
102 const GURL& url, const std::string& mime_type); | 102 const GURL& url, const std::string& mime_type); |
103 | 103 |
104 // Informs the delegate that a response has started. | 104 // Informs the delegate that a response has started. |
105 virtual void OnResponseStarted( | 105 virtual void OnResponseStarted( |
106 net::URLRequest* request, | 106 net::URLRequest* request, |
| 107 ResourceContext* resource_context, |
107 ResourceResponse* response, | 108 ResourceResponse* response, |
108 IPC::Sender* sender); | 109 IPC::Sender* sender); |
109 | 110 |
110 // Informs the delegate that a request has been redirected. | 111 // Informs the delegate that a request has been redirected. |
111 virtual void OnRequestRedirected( | 112 virtual void OnRequestRedirected( |
112 net::URLRequest* request, | 113 net::URLRequest* request, |
| 114 ResourceContext* resource_context, |
113 ResourceResponse* response); | 115 ResourceResponse* response); |
114 | 116 |
115 protected: | 117 protected: |
116 ResourceDispatcherHostDelegate(); | 118 ResourceDispatcherHostDelegate(); |
117 virtual ~ResourceDispatcherHostDelegate(); | 119 virtual ~ResourceDispatcherHostDelegate(); |
118 }; | 120 }; |
119 | 121 |
120 } // namespace content | 122 } // namespace content |
121 | 123 |
122 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 124 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |