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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 | 117 |
118 // Informs the delegate that a request has been redirected. | 118 // Informs the delegate that a request has been redirected. |
119 virtual void OnRequestRedirected(const GURL& redirect_url, | 119 virtual void OnRequestRedirected(const GURL& redirect_url, |
120 net::URLRequest* request, | 120 net::URLRequest* request, |
121 ResourceContext* resource_context, | 121 ResourceContext* resource_context, |
122 ResourceResponse* response); | 122 ResourceResponse* response); |
123 | 123 |
124 // Notification that a request has completed. | 124 // Notification that a request has completed. |
125 virtual void RequestComplete(net::URLRequest* url_request); | 125 virtual void RequestComplete(net::URLRequest* url_request); |
126 | 126 |
127 // Asks the embedder if Lo-Fi mode should be enabled for the given request. It | |
128 // is only called for main frame requests with an unspecified Lo-Fi value. | |
nasko
2015/10/15 16:54:43
nit: "main frame navigation requests", since we do
mmenke
2015/10/15 17:04:28
Effectively we don't - subresources inherit values
megjablon
2015/10/19 22:13:49
Changed this to just "called for requests." It wil
| |
129 virtual bool ShouldEnableLoFiMode(net::URLRequest* url_request, | |
130 content::ResourceContext* resource_context); | |
131 | |
127 protected: | 132 protected: |
128 ResourceDispatcherHostDelegate(); | 133 ResourceDispatcherHostDelegate(); |
129 virtual ~ResourceDispatcherHostDelegate(); | 134 virtual ~ResourceDispatcherHostDelegate(); |
130 }; | 135 }; |
131 | 136 |
132 } // namespace content | 137 } // namespace content |
133 | 138 |
134 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 139 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |