OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // Controls whether actual headers sent and received for request are | 152 // Controls whether actual headers sent and received for request are |
153 // collected and reported. | 153 // collected and reported. |
154 BLINK_PLATFORM_EXPORT bool reportRawHeaders() const; | 154 BLINK_PLATFORM_EXPORT bool reportRawHeaders() const; |
155 BLINK_PLATFORM_EXPORT void setReportRawHeaders(bool); | 155 BLINK_PLATFORM_EXPORT void setReportRawHeaders(bool); |
156 | 156 |
157 BLINK_PLATFORM_EXPORT TargetType targetType() const; | 157 BLINK_PLATFORM_EXPORT TargetType targetType() const; |
158 BLINK_PLATFORM_EXPORT void setTargetType(TargetType); | 158 BLINK_PLATFORM_EXPORT void setTargetType(TargetType); |
159 | 159 |
160 BLINK_PLATFORM_EXPORT WebReferrerPolicy referrerPolicy() const; | 160 BLINK_PLATFORM_EXPORT WebReferrerPolicy referrerPolicy() const; |
161 | 161 |
| 162 // Adds an HTTP origin header if it is empty and the HTTP method of the |
| 163 // request requires it. |
| 164 BLINK_PLATFORM_EXPORT void addHTTPOriginIfNeeded(const WebString& origin); |
| 165 |
162 // True if the request was user initiated. | 166 // True if the request was user initiated. |
163 BLINK_PLATFORM_EXPORT bool hasUserGesture() const; | 167 BLINK_PLATFORM_EXPORT bool hasUserGesture() const; |
164 BLINK_PLATFORM_EXPORT void setHasUserGesture(bool); | 168 BLINK_PLATFORM_EXPORT void setHasUserGesture(bool); |
165 | 169 |
166 // A consumer controlled value intended to be used to identify the | 170 // A consumer controlled value intended to be used to identify the |
167 // requestor. | 171 // requestor. |
168 BLINK_PLATFORM_EXPORT int requestorID() const; | 172 BLINK_PLATFORM_EXPORT int requestorID() const; |
169 BLINK_PLATFORM_EXPORT void setRequestorID(int); | 173 BLINK_PLATFORM_EXPORT void setRequestorID(int); |
170 | 174 |
171 // A consumer controlled value intended to be used to identify the | 175 // A consumer controlled value intended to be used to identify the |
(...skipping 30 matching lines...) Expand all Loading... |
202 protected: | 206 protected: |
203 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 207 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
204 | 208 |
205 private: | 209 private: |
206 WebURLRequestPrivate* m_private; | 210 WebURLRequestPrivate* m_private; |
207 }; | 211 }; |
208 | 212 |
209 } // namespace blink | 213 } // namespace blink |
210 | 214 |
211 #endif | 215 #endif |
OLD | NEW |