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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // The origin of the execution context which originated the request. Used to | 183 // The origin of the execution context which originated the request. Used to |
184 // implement First-Party-Only cookie restrictions. | 184 // implement First-Party-Only cookie restrictions. |
185 BLINK_PLATFORM_EXPORT WebSecurityOrigin requestorOrigin() const; | 185 BLINK_PLATFORM_EXPORT WebSecurityOrigin requestorOrigin() const; |
186 BLINK_PLATFORM_EXPORT void setRequestorOrigin(const WebSecurityOrigin&); | 186 BLINK_PLATFORM_EXPORT void setRequestorOrigin(const WebSecurityOrigin&); |
187 | 187 |
188 // Controls whether user name, password, and cookies may be sent with the | 188 // Controls whether user name, password, and cookies may be sent with the |
189 // request. (If false, this overrides allowCookies.) | 189 // request. (If false, this overrides allowCookies.) |
190 BLINK_PLATFORM_EXPORT bool allowStoredCredentials() const; | 190 BLINK_PLATFORM_EXPORT bool allowStoredCredentials() const; |
191 BLINK_PLATFORM_EXPORT void setAllowStoredCredentials(bool); | 191 BLINK_PLATFORM_EXPORT void setAllowStoredCredentials(bool); |
192 | 192 |
193 BLINK_PLATFORM_EXPORT CachePolicy cachePolicy() const; | 193 BLINK_PLATFORM_EXPORT CachePolicy getCachePolicy() const; |
194 BLINK_PLATFORM_EXPORT void setCachePolicy(CachePolicy); | 194 BLINK_PLATFORM_EXPORT void setCachePolicy(CachePolicy); |
195 | 195 |
196 BLINK_PLATFORM_EXPORT WebString httpMethod() const; | 196 BLINK_PLATFORM_EXPORT WebString httpMethod() const; |
197 BLINK_PLATFORM_EXPORT void setHTTPMethod(const WebString&); | 197 BLINK_PLATFORM_EXPORT void setHTTPMethod(const WebString&); |
198 | 198 |
199 BLINK_PLATFORM_EXPORT WebString httpHeaderField(const WebString& name) const
; | 199 BLINK_PLATFORM_EXPORT WebString httpHeaderField(const WebString& name) const
; |
200 // It's not possible to set the referrer header using this method. Use setHT
TPReferrer instead. | 200 // It's not possible to set the referrer header using this method. Use setHT
TPReferrer instead. |
201 BLINK_PLATFORM_EXPORT void setHTTPHeaderField(const WebString& name, const W
ebString& value); | 201 BLINK_PLATFORM_EXPORT void setHTTPHeaderField(const WebString& name, const W
ebString& value); |
202 BLINK_PLATFORM_EXPORT void setHTTPReferrer(const WebString& referrer, WebRef
errerPolicy); | 202 BLINK_PLATFORM_EXPORT void setHTTPReferrer(const WebString& referrer, WebRef
errerPolicy); |
203 BLINK_PLATFORM_EXPORT void addHTTPHeaderField(const WebString& name, const W
ebString& value); | 203 BLINK_PLATFORM_EXPORT void addHTTPHeaderField(const WebString& name, const W
ebString& value); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 protected: | 320 protected: |
321 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 321 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
322 | 322 |
323 private: | 323 private: |
324 WebURLRequestPrivate* m_private; | 324 WebURLRequestPrivate* m_private; |
325 }; | 325 }; |
326 | 326 |
327 } // namespace blink | 327 } // namespace blink |
328 | 328 |
329 #endif | 329 #endif |
OLD | NEW |