| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // contain a portion of the response body at the time that the ResponseInfo | 179 // contain a portion of the response body at the time that the ResponseInfo |
| 180 // becomes available. | 180 // becomes available. |
| 181 FilePath download_file_path; | 181 FilePath download_file_path; |
| 182 | 182 |
| 183 // True if the response was delivered using SPDY. | 183 // True if the response was delivered using SPDY. |
| 184 bool was_fetched_via_spdy; | 184 bool was_fetched_via_spdy; |
| 185 | 185 |
| 186 // True if the response was delivered after NPN is negotiated. | 186 // True if the response was delivered after NPN is negotiated. |
| 187 bool was_npn_negotiated; | 187 bool was_npn_negotiated; |
| 188 | 188 |
| 189 // Protocol negotiated with server. |
| 190 std::string npn_negotiated_protocol; |
| 191 |
| 189 // True if response could use alternate protocol. However, browser will | 192 // True if response could use alternate protocol. However, browser will |
| 190 // ignore the alternate protocol when spdy is not enabled on browser side. | 193 // ignore the alternate protocol when spdy is not enabled on browser side. |
| 191 bool was_alternate_protocol_available; | 194 bool was_alternate_protocol_available; |
| 192 | 195 |
| 193 // True if the response was fetched via an explicit proxy (as opposed to a | 196 // 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. | 197 // 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. | 198 // Note: we cannot tell if a transparent proxy may have been involved. |
| 196 bool was_fetched_via_proxy; | 199 bool was_fetched_via_proxy; |
| 197 | 200 |
| 198 // Remote address of the socket which fetched this resource. | 201 // Remote address of the socket which fetched this resource. |
| (...skipping 204 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 |