| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 FetchRequestModeSameOrigin, | 115 FetchRequestModeSameOrigin, |
| 116 FetchRequestModeNoCORS, | 116 FetchRequestModeNoCORS, |
| 117 FetchRequestModeCORS, | 117 FetchRequestModeCORS, |
| 118 FetchRequestModeCORSWithForcedPreflight, | 118 FetchRequestModeCORSWithForcedPreflight, |
| 119 FetchRequestModeNavigate | 119 FetchRequestModeNavigate |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 enum FetchCredentialsMode { | 122 enum FetchCredentialsMode { |
| 123 FetchCredentialsModeOmit, | 123 FetchCredentialsModeOmit, |
| 124 FetchCredentialsModeSameOrigin, | 124 FetchCredentialsModeSameOrigin, |
| 125 FetchCredentialsModeInclude | 125 FetchCredentialsModeInclude, |
| 126 FetchCredentialsModePassword |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 enum FetchRedirectMode { | 129 enum FetchRedirectMode { |
| 129 FetchRedirectModeFollow, | 130 FetchRedirectModeFollow, |
| 130 FetchRedirectModeError, | 131 FetchRedirectModeError, |
| 131 FetchRedirectModeManual | 132 FetchRedirectModeManual |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 // Used to report performance metrics timed from the UI action that | 135 // Used to report performance metrics timed from the UI action that |
| 135 // triggered them (as opposed to navigation start time used in the | 136 // triggered them (as opposed to navigation start time used in the |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // It's not possible to set the referrer header using this method. Use setHT
TPReferrer instead. | 202 // It's not possible to set the referrer header using this method. Use setHT
TPReferrer instead. |
| 202 BLINK_PLATFORM_EXPORT void setHTTPHeaderField(const WebString& name, const W
ebString& value); | 203 BLINK_PLATFORM_EXPORT void setHTTPHeaderField(const WebString& name, const W
ebString& value); |
| 203 BLINK_PLATFORM_EXPORT void setHTTPReferrer(const WebString& referrer, WebRef
errerPolicy); | 204 BLINK_PLATFORM_EXPORT void setHTTPReferrer(const WebString& referrer, WebRef
errerPolicy); |
| 204 BLINK_PLATFORM_EXPORT void addHTTPHeaderField(const WebString& name, const W
ebString& value); | 205 BLINK_PLATFORM_EXPORT void addHTTPHeaderField(const WebString& name, const W
ebString& value); |
| 205 BLINK_PLATFORM_EXPORT void clearHTTPHeaderField(const WebString& name); | 206 BLINK_PLATFORM_EXPORT void clearHTTPHeaderField(const WebString& name); |
| 206 BLINK_PLATFORM_EXPORT void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) cons
t; | 207 BLINK_PLATFORM_EXPORT void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) cons
t; |
| 207 | 208 |
| 208 BLINK_PLATFORM_EXPORT WebHTTPBody httpBody() const; | 209 BLINK_PLATFORM_EXPORT WebHTTPBody httpBody() const; |
| 209 BLINK_PLATFORM_EXPORT void setHTTPBody(const WebHTTPBody&); | 210 BLINK_PLATFORM_EXPORT void setHTTPBody(const WebHTTPBody&); |
| 210 | 211 |
| 212 BLINK_PLATFORM_EXPORT WebHTTPBody attachedCredentialBody() const; |
| 213 BLINK_PLATFORM_EXPORT void setAttachedCredentialBody(const WebHTTPBody&); |
| 214 |
| 211 // Controls whether upload progress events are generated when a request | 215 // Controls whether upload progress events are generated when a request |
| 212 // has a body. | 216 // has a body. |
| 213 BLINK_PLATFORM_EXPORT bool reportUploadProgress() const; | 217 BLINK_PLATFORM_EXPORT bool reportUploadProgress() const; |
| 214 BLINK_PLATFORM_EXPORT void setReportUploadProgress(bool); | 218 BLINK_PLATFORM_EXPORT void setReportUploadProgress(bool); |
| 215 | 219 |
| 216 // Controls whether actual headers sent and received for request are | 220 // Controls whether actual headers sent and received for request are |
| 217 // collected and reported. | 221 // collected and reported. |
| 218 BLINK_PLATFORM_EXPORT bool reportRawHeaders() const; | 222 BLINK_PLATFORM_EXPORT bool reportRawHeaders() const; |
| 219 BLINK_PLATFORM_EXPORT void setReportRawHeaders(bool); | 223 BLINK_PLATFORM_EXPORT void setReportRawHeaders(bool); |
| 220 | 224 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 protected: | 323 protected: |
| 320 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 324 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
| 321 | 325 |
| 322 private: | 326 private: |
| 323 WebURLRequestPrivate* m_private; | 327 WebURLRequestPrivate* m_private; |
| 324 }; | 328 }; |
| 325 | 329 |
| 326 } // namespace blink | 330 } // namespace blink |
| 327 | 331 |
| 328 #endif | 332 #endif |
| OLD | NEW |