| 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 // 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 struct WEBKIT_GLUE_EXPORT RequestInfo { | 209 struct WEBKIT_GLUE_EXPORT RequestInfo { |
| 210 RequestInfo(); | 210 RequestInfo(); |
| 211 ~RequestInfo(); | 211 ~RequestInfo(); |
| 212 | 212 |
| 213 // HTTP-style method name (e.g., "GET" or "POST"). | 213 // HTTP-style method name (e.g., "GET" or "POST"). |
| 214 std::string method; | 214 std::string method; |
| 215 | 215 |
| 216 // Absolute URL encoded in ASCII per the rules of RFC-2396. | 216 // Absolute URL encoded in ASCII per the rules of RFC-2396. |
| 217 GURL url; | 217 GURL url; |
| 218 | 218 |
| 219 // The virtual URL is the URL that is seen by the user. |
| 220 GURL virtual_url; |
| 221 |
| 219 // URL of the document in the top-level window, which may be checked by the | 222 // URL of the document in the top-level window, which may be checked by the |
| 220 // third-party cookie blocking policy. | 223 // third-party cookie blocking policy. |
| 221 GURL first_party_for_cookies; | 224 GURL first_party_for_cookies; |
| 222 | 225 |
| 223 // Optional parameter, a URL with similar constraints in how it must be | 226 // Optional parameter, a URL with similar constraints in how it must be |
| 224 // encoded as the url member. | 227 // encoded as the url member. |
| 225 GURL referrer; | 228 GURL referrer; |
| 226 | 229 |
| 227 // The referrer policy that applies to the referrer. | 230 // The referrer policy that applies to the referrer. |
| 228 WebKit::WebReferrerPolicy referrer_policy; | 231 WebKit::WebReferrerPolicy referrer_policy; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 // methods may be called to construct the body of the request. | 409 // methods may be called to construct the body of the request. |
| 407 WEBKIT_GLUE_EXPORT ResourceLoaderBridge(); | 410 WEBKIT_GLUE_EXPORT ResourceLoaderBridge(); |
| 408 | 411 |
| 409 private: | 412 private: |
| 410 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); | 413 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); |
| 411 }; | 414 }; |
| 412 | 415 |
| 413 } // namespace webkit_glue | 416 } // namespace webkit_glue |
| 414 | 417 |
| 415 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ | 418 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ |
| OLD | NEW |