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 FetchRequestModeCORS, | 115 FetchRequestModeCORS, |
116 FetchRequestModeCORSWithForcedPreflight | 116 FetchRequestModeCORSWithForcedPreflight |
117 }; | 117 }; |
118 | 118 |
119 enum FetchCredentialsMode { | 119 enum FetchCredentialsMode { |
120 FetchCredentialsModeOmit, | 120 FetchCredentialsModeOmit, |
121 FetchCredentialsModeSameOrigin, | 121 FetchCredentialsModeSameOrigin, |
122 FetchCredentialsModeInclude | 122 FetchCredentialsModeInclude |
123 }; | 123 }; |
124 | 124 |
| 125 enum FetchRedirectMode { |
| 126 FetchRedirectModeFollow, |
| 127 FetchRedirectModeError, |
| 128 FetchRedirectModeManual |
| 129 }; |
| 130 |
125 // Used to report performance metrics timed from the UI action that | 131 // Used to report performance metrics timed from the UI action that |
126 // triggered them (as opposed to navigation start time used in the | 132 // triggered them (as opposed to navigation start time used in the |
127 // Navigation Timing API). | 133 // Navigation Timing API). |
128 enum InputToLoadPerfMetricReportPolicy { | 134 enum InputToLoadPerfMetricReportPolicy { |
129 NoReport, // Don't report metrics for this WebURLRequest. | 135 NoReport, // Don't report metrics for this WebURLRequest. |
130 ReportLink, // Report metrics with UI action link clicked. | 136 ReportLink, // Report metrics with UI action link clicked. |
131 ReportIntent, // Report metrics with UI action displayed intent. | 137 ReportIntent, // Report metrics with UI action displayed intent. |
132 }; | 138 }; |
133 | 139 |
134 class ExtraData { | 140 class ExtraData { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 BLINK_PLATFORM_EXPORT void setShouldResetAppCache(bool); | 251 BLINK_PLATFORM_EXPORT void setShouldResetAppCache(bool); |
246 | 252 |
247 // The request mode which will be passed to the ServiceWorker. | 253 // The request mode which will be passed to the ServiceWorker. |
248 BLINK_PLATFORM_EXPORT FetchRequestMode fetchRequestMode() const; | 254 BLINK_PLATFORM_EXPORT FetchRequestMode fetchRequestMode() const; |
249 BLINK_PLATFORM_EXPORT void setFetchRequestMode(FetchRequestMode); | 255 BLINK_PLATFORM_EXPORT void setFetchRequestMode(FetchRequestMode); |
250 | 256 |
251 // The credentials mode which will be passed to the ServiceWorker. | 257 // The credentials mode which will be passed to the ServiceWorker. |
252 BLINK_PLATFORM_EXPORT FetchCredentialsMode fetchCredentialsMode() const; | 258 BLINK_PLATFORM_EXPORT FetchCredentialsMode fetchCredentialsMode() const; |
253 BLINK_PLATFORM_EXPORT void setFetchCredentialsMode(FetchCredentialsMode); | 259 BLINK_PLATFORM_EXPORT void setFetchCredentialsMode(FetchCredentialsMode); |
254 | 260 |
| 261 // The redirect mode which will be passed to the ServiceWorker. |
| 262 BLINK_PLATFORM_EXPORT FetchRedirectMode fetchRedirectMode() const; |
| 263 BLINK_PLATFORM_EXPORT void setFetchRedirectMode(FetchRedirectMode); |
| 264 |
255 // Extra data associated with the underlying resource request. Resource | 265 // Extra data associated with the underlying resource request. Resource |
256 // requests can be copied. If non-null, each copy of a resource requests | 266 // requests can be copied. If non-null, each copy of a resource requests |
257 // holds a pointer to the extra data, and the extra data pointer will be | 267 // holds a pointer to the extra data, and the extra data pointer will be |
258 // deleted when the last resource request is destroyed. Setting the extra | 268 // deleted when the last resource request is destroyed. Setting the extra |
259 // data pointer will cause the underlying resource request to be | 269 // data pointer will cause the underlying resource request to be |
260 // dissociated from any existing non-null extra data pointer. | 270 // dissociated from any existing non-null extra data pointer. |
261 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; | 271 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; |
262 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 272 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
263 | 273 |
264 BLINK_PLATFORM_EXPORT Priority priority() const; | 274 BLINK_PLATFORM_EXPORT Priority priority() const; |
(...skipping 27 matching lines...) Expand all Loading... |
292 protected: | 302 protected: |
293 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 303 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
294 | 304 |
295 private: | 305 private: |
296 WebURLRequestPrivate* m_private; | 306 WebURLRequestPrivate* m_private; |
297 }; | 307 }; |
298 | 308 |
299 } // namespace blink | 309 } // namespace blink |
300 | 310 |
301 #endif | 311 #endif |
OLD | NEW |