Chromium Code Reviews| Index: content/public/browser/resource_dispatcher_host_delegate.h |
| diff --git a/content/public/browser/resource_dispatcher_host_delegate.h b/content/public/browser/resource_dispatcher_host_delegate.h |
| index cb40ca14da46daced7ec040515c5a983ead7a70f..ec71b3dcdb2c3a7a3b849965cdf36faaaac2b385 100644 |
| --- a/content/public/browser/resource_dispatcher_host_delegate.h |
| +++ b/content/public/browser/resource_dispatcher_host_delegate.h |
| @@ -22,20 +22,21 @@ class Sender; |
| } |
| namespace net { |
| class AuthChallengeInfo; |
| class URLRequest; |
| } |
| namespace content { |
| class AppCacheService; |
| +class NavigationData; |
| class ResourceContext; |
| class ResourceDispatcherHostLoginDelegate; |
| class ResourceThrottle; |
| struct Referrer; |
| struct ResourceResponse; |
| struct StreamInfo; |
| // Interface that the embedder provides to ResourceDispatcherHost to allow |
| // observing and modifying requests. |
| class CONTENT_EXPORT ResourceDispatcherHostDelegate { |
| @@ -123,18 +124,23 @@ class CONTENT_EXPORT ResourceDispatcherHostDelegate { |
| ResourceResponse* response); |
| // Notification that a request has completed. |
| virtual void RequestComplete(net::URLRequest* url_request); |
| // Asks the embedder if Lo-Fi mode should be enabled for the given request. It |
| // is only called for requests with an unspecified Lo-Fi value. |
| virtual bool ShouldEnableLoFiMode(const net::URLRequest& url_request, |
| content::ResourceContext* resource_context); |
| + // Asks the embedder for NavigationData related to this request. It is only |
| + // called for requests that are navigation requests. |
| + virtual std::unique_ptr<NavigationData> GetNavigationData( |
| + const net::URLRequest* request) const; |
|
nasko
2016/05/02 22:02:49
Make sure mmenke@ or csharrison@ looks at this and
RyanSturm
2016/05/02 23:02:56
Adding csharrison@ for this.
|
| + |
| protected: |
| ResourceDispatcherHostDelegate(); |
| virtual ~ResourceDispatcherHostDelegate(); |
| }; |
| } // namespace content |
| #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |