Chromium Code Reviews| 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 11 matching lines...) Expand all Loading... | |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace net { | 24 namespace net { |
| 25 class AuthChallengeInfo; | 25 class AuthChallengeInfo; |
| 26 class URLRequest; | 26 class URLRequest; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 | 30 |
| 31 class AppCacheService; | 31 class AppCacheService; |
| 32 class NavigationData; | |
| 32 class ResourceContext; | 33 class ResourceContext; |
| 33 class ResourceDispatcherHostLoginDelegate; | 34 class ResourceDispatcherHostLoginDelegate; |
| 34 class ResourceThrottle; | 35 class ResourceThrottle; |
| 35 struct Referrer; | 36 struct Referrer; |
| 36 struct ResourceResponse; | 37 struct ResourceResponse; |
| 37 struct StreamInfo; | 38 struct StreamInfo; |
| 38 | 39 |
| 39 // Interface that the embedder provides to ResourceDispatcherHost to allow | 40 // Interface that the embedder provides to ResourceDispatcherHost to allow |
| 40 // observing and modifying requests. | 41 // observing and modifying requests. |
| 41 class CONTENT_EXPORT ResourceDispatcherHostDelegate { | 42 class CONTENT_EXPORT ResourceDispatcherHostDelegate { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 ResourceResponse* response); | 124 ResourceResponse* response); |
| 124 | 125 |
| 125 // Notification that a request has completed. | 126 // Notification that a request has completed. |
| 126 virtual void RequestComplete(net::URLRequest* url_request); | 127 virtual void RequestComplete(net::URLRequest* url_request); |
| 127 | 128 |
| 128 // Asks the embedder if Lo-Fi mode should be enabled for the given request. It | 129 // Asks the embedder if Lo-Fi mode should be enabled for the given request. It |
| 129 // is only called for requests with an unspecified Lo-Fi value. | 130 // is only called for requests with an unspecified Lo-Fi value. |
| 130 virtual bool ShouldEnableLoFiMode(const net::URLRequest& url_request, | 131 virtual bool ShouldEnableLoFiMode(const net::URLRequest& url_request, |
| 131 content::ResourceContext* resource_context); | 132 content::ResourceContext* resource_context); |
| 132 | 133 |
| 134 // Asks the embedder for NavigationData related to this request. It is only | |
| 135 // called for requests that are navigation requests. | |
| 136 virtual std::unique_ptr<NavigationData> GetNavigationData( | |
| 137 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.
| |
| 138 | |
| 133 protected: | 139 protected: |
| 134 ResourceDispatcherHostDelegate(); | 140 ResourceDispatcherHostDelegate(); |
| 135 virtual ~ResourceDispatcherHostDelegate(); | 141 virtual ~ResourceDispatcherHostDelegate(); |
| 136 }; | 142 }; |
| 137 | 143 |
| 138 } // namespace content | 144 } // namespace content |
| 139 | 145 |
| 140 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 146 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
| OLD | NEW |