OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // The intent of this file is to provide a type-neutral abstraction between | 5 // The intent of this file is to provide a type-neutral abstraction between |
6 // Chrome and WebKit for resource loading. This pure-virtual interface is | 6 // Chrome and WebKit for resource loading. This pure-virtual interface is |
7 // implemented by the embedder. | 7 // implemented by the embedder. |
8 // | 8 // |
9 // One of these objects will be created by WebKit for each request. WebKit | 9 // One of these objects will be created by WebKit for each request. WebKit |
10 // will own the pointer to the bridge, and will delete it when the request is | 10 // will own the pointer to the bridge, and will delete it when the request is |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 // True if response could use alternate protocol. However, browser will | 189 // True if response could use alternate protocol. However, browser will |
190 // ignore the alternate protocol when spdy is not enabled on browser side. | 190 // ignore the alternate protocol when spdy is not enabled on browser side. |
191 bool was_alternate_protocol_available; | 191 bool was_alternate_protocol_available; |
192 | 192 |
193 // True if the response was fetched via an explicit proxy (as opposed to a | 193 // True if the response was fetched via an explicit proxy (as opposed to a |
194 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. | 194 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. |
195 // Note: we cannot tell if a transparent proxy may have been involved. | 195 // Note: we cannot tell if a transparent proxy may have been involved. |
196 bool was_fetched_via_proxy; | 196 bool was_fetched_via_proxy; |
197 | 197 |
| 198 // True if the resource needs auto encoding detection. |
| 199 bool needs_encoding_detection; |
| 200 |
198 // Remote address of the socket which fetched this resource. | 201 // Remote address of the socket which fetched this resource. |
199 net::HostPortPair socket_address; | 202 net::HostPortPair socket_address; |
200 }; | 203 }; |
201 | 204 |
202 class ResourceLoaderBridge { | 205 class ResourceLoaderBridge { |
203 public: | 206 public: |
204 // Structure used when calling | 207 // Structure used when calling |
205 // WebKitPlatformSupportImpl::CreateResourceLoader(). | 208 // WebKitPlatformSupportImpl::CreateResourceLoader(). |
206 struct WEBKIT_GLUE_EXPORT RequestInfo { | 209 struct WEBKIT_GLUE_EXPORT RequestInfo { |
207 RequestInfo(); | 210 RequestInfo(); |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // methods may be called to construct the body of the request. | 406 // methods may be called to construct the body of the request. |
404 WEBKIT_GLUE_EXPORT ResourceLoaderBridge(); | 407 WEBKIT_GLUE_EXPORT ResourceLoaderBridge(); |
405 | 408 |
406 private: | 409 private: |
407 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); | 410 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); |
408 }; | 411 }; |
409 | 412 |
410 } // namespace webkit_glue | 413 } // namespace webkit_glue |
411 | 414 |
412 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ | 415 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ |
OLD | NEW |