OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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, which also provides a factory method Create | 7 // implemented by the embedder, which also provides a factory method Create |
8 // to instantiate this object. | 8 // to instantiate this object. |
9 // | 9 // |
10 // One of these objects will be created by WebKit for each request. WebKit | 10 // One of these objects will be created by WebKit for each request. WebKit |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // The manifest url of the appcache this response was loaded from. | 121 // The manifest url of the appcache this response was loaded from. |
122 // Note: this value is only populated for main resource requests. | 122 // Note: this value is only populated for main resource requests. |
123 GURL appcache_manifest_url; | 123 GURL appcache_manifest_url; |
124 | 124 |
125 // True if the response was delivered using SPDY. | 125 // True if the response was delivered using SPDY. |
126 bool was_fetched_via_spdy; | 126 bool was_fetched_via_spdy; |
127 | 127 |
128 // True if the response was delivered after NPN is negotiated. | 128 // True if the response was delivered after NPN is negotiated. |
129 bool was_npn_negotiated; | 129 bool was_npn_negotiated; |
130 | 130 |
| 131 // True if response could use alternate protocol. However, browser will |
| 132 // ignore the alternate protocol when spdy is not enabled on browser side. |
| 133 bool was_alternate_protocol_available; |
| 134 |
131 // True if the response was fetched via an explicit proxy (as opposed to a | 135 // True if the response was fetched via an explicit proxy (as opposed to a |
132 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. | 136 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. |
133 // Note: we cannot tell if a transparent proxy may have been involved. | 137 // Note: we cannot tell if a transparent proxy may have been involved. |
134 bool was_fetched_via_proxy; | 138 bool was_fetched_via_proxy; |
135 }; | 139 }; |
136 | 140 |
137 // See the SyncLoad method declared below. (The name of this struct is not | 141 // See the SyncLoad method declared below. (The name of this struct is not |
138 // suffixed with "Info" because it also contains the response data.) | 142 // suffixed with "Info" because it also contains the response data.) |
139 struct SyncLoadResponse : ResponseInfo { | 143 struct SyncLoadResponse : ResponseInfo { |
140 SyncLoadResponse(); | 144 SyncLoadResponse(); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // construction must go through Create() | 267 // construction must go through Create() |
264 ResourceLoaderBridge(); | 268 ResourceLoaderBridge(); |
265 | 269 |
266 private: | 270 private: |
267 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); | 271 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); |
268 }; | 272 }; |
269 | 273 |
270 } // namespace webkit_glue | 274 } // namespace webkit_glue |
271 | 275 |
272 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ | 276 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ |
OLD | NEW |