| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // URL of the document in the top-level window, which may be checked by the | 53 // URL of the document in the top-level window, which may be checked by the |
| 54 // third-party cookie blocking policy. | 54 // third-party cookie blocking policy. |
| 55 GURL first_party_for_cookies; | 55 GURL first_party_for_cookies; |
| 56 | 56 |
| 57 // Optional parameter, a URL with similar constraints in how it must be | 57 // Optional parameter, a URL with similar constraints in how it must be |
| 58 // encoded as the url member. | 58 // encoded as the url member. |
| 59 GURL referrer; | 59 GURL referrer; |
| 60 | 60 |
| 61 // The referrer policy that applies to the referrer. | 61 // The referrer policy that applies to the referrer. |
| 62 WebKit::WebReferrerPolicy referrer_policy; | 62 blink::WebReferrerPolicy referrer_policy; |
| 63 | 63 |
| 64 // For HTTP(S) requests, the headers parameter can be a \r\n-delimited and | 64 // For HTTP(S) requests, the headers parameter can be a \r\n-delimited and |
| 65 // \r\n-terminated list of MIME headers. They should be ASCII-encoded using | 65 // \r\n-terminated list of MIME headers. They should be ASCII-encoded using |
| 66 // the standard MIME header encoding rules. The headers parameter can also | 66 // the standard MIME header encoding rules. The headers parameter can also |
| 67 // be null if no extra request headers need to be set. | 67 // be null if no extra request headers need to be set. |
| 68 std::string headers; | 68 std::string headers; |
| 69 | 69 |
| 70 // Composed of the values defined in url_request_load_flags.h. | 70 // Composed of the values defined in url_request_load_flags.h. |
| 71 int load_flags; | 71 int load_flags; |
| 72 | 72 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 90 int routing_id; | 90 int routing_id; |
| 91 | 91 |
| 92 // If true, then the response body will be downloaded to a file and the | 92 // If true, then the response body will be downloaded to a file and the |
| 93 // path to that file will be provided in ResponseInfo::download_file_path. | 93 // path to that file will be provided in ResponseInfo::download_file_path. |
| 94 bool download_to_file; | 94 bool download_to_file; |
| 95 | 95 |
| 96 // True if the request was user initiated. | 96 // True if the request was user initiated. |
| 97 bool has_user_gesture; | 97 bool has_user_gesture; |
| 98 | 98 |
| 99 // Extra data associated with this request. We do not own this pointer. | 99 // Extra data associated with this request. We do not own this pointer. |
| 100 WebKit::WebURLRequest::ExtraData* extra_data; | 100 blink::WebURLRequest::ExtraData* extra_data; |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 DISALLOW_COPY_AND_ASSIGN(RequestInfo); | 103 DISALLOW_COPY_AND_ASSIGN(RequestInfo); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 // See the SyncLoad method declared below. (The name of this struct is not | 106 // See the SyncLoad method declared below. (The name of this struct is not |
| 107 // suffixed with "Info" because it also contains the response data.) | 107 // suffixed with "Info" because it also contains the response data.) |
| 108 struct SyncLoadResponse : ResourceResponseInfo { | 108 struct SyncLoadResponse : ResourceResponseInfo { |
| 109 WEBKIT_CHILD_EXPORT SyncLoadResponse(); | 109 WEBKIT_CHILD_EXPORT SyncLoadResponse(); |
| 110 WEBKIT_CHILD_EXPORT ~SyncLoadResponse(); | 110 WEBKIT_CHILD_EXPORT ~SyncLoadResponse(); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // methods may be called to construct the body of the request. | 228 // methods may be called to construct the body of the request. |
| 229 WEBKIT_CHILD_EXPORT ResourceLoaderBridge(); | 229 WEBKIT_CHILD_EXPORT ResourceLoaderBridge(); |
| 230 | 230 |
| 231 private: | 231 private: |
| 232 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); | 232 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 } // namespace webkit_glue | 235 } // namespace webkit_glue |
| 236 | 236 |
| 237 #endif // WEBKIT_CHILD_RESOURCE_LOADER_BRIDGE_H_ | 237 #endif // WEBKIT_CHILD_RESOURCE_LOADER_BRIDGE_H_ |
| OLD | NEW |