| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 // Allows the request to be matched up with its app cache host. | 205 // Allows the request to be matched up with its app cache host. |
| 206 BLINK_PLATFORM_EXPORT int appCacheHostID() const; | 206 BLINK_PLATFORM_EXPORT int appCacheHostID() const; |
| 207 BLINK_PLATFORM_EXPORT void setAppCacheHostID(int); | 207 BLINK_PLATFORM_EXPORT void setAppCacheHostID(int); |
| 208 | 208 |
| 209 // If true, the response body will be downloaded to a file managed by the | 209 // If true, the response body will be downloaded to a file managed by the |
| 210 // WebURLLoader. See WebURLResponse::downloadedFilePath. | 210 // WebURLLoader. See WebURLResponse::downloadedFilePath. |
| 211 BLINK_PLATFORM_EXPORT bool downloadToFile() const; | 211 BLINK_PLATFORM_EXPORT bool downloadToFile() const; |
| 212 BLINK_PLATFORM_EXPORT void setDownloadToFile(bool); | 212 BLINK_PLATFORM_EXPORT void setDownloadToFile(bool); |
| 213 | 213 |
| 214 // True if the request should not be handled by the ServiceWorker. |
| 215 BLINK_PLATFORM_EXPORT bool skipServiceWorker() const; |
| 216 BLINK_PLATFORM_EXPORT void setSkipServiceWorker(bool); |
| 217 |
| 214 // Extra data associated with the underlying resource request. Resource | 218 // Extra data associated with the underlying resource request. Resource |
| 215 // requests can be copied. If non-null, each copy of a resource requests | 219 // requests can be copied. If non-null, each copy of a resource requests |
| 216 // holds a pointer to the extra data, and the extra data pointer will be | 220 // holds a pointer to the extra data, and the extra data pointer will be |
| 217 // deleted when the last resource request is destroyed. Setting the extra | 221 // deleted when the last resource request is destroyed. Setting the extra |
| 218 // data pointer will cause the underlying resource request to be | 222 // data pointer will cause the underlying resource request to be |
| 219 // dissociated from any existing non-null extra data pointer. | 223 // dissociated from any existing non-null extra data pointer. |
| 220 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; | 224 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; |
| 221 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 225 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
| 222 | 226 |
| 223 BLINK_PLATFORM_EXPORT Priority priority() const; | 227 BLINK_PLATFORM_EXPORT Priority priority() const; |
| 224 BLINK_PLATFORM_EXPORT void setPriority(Priority); | 228 BLINK_PLATFORM_EXPORT void setPriority(Priority); |
| 225 | 229 |
| 226 #if INSIDE_BLINK | 230 #if INSIDE_BLINK |
| 227 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); | 231 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); |
| 228 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; | 232 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; |
| 229 #endif | 233 #endif |
| 230 | 234 |
| 231 protected: | 235 protected: |
| 232 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 236 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
| 233 | 237 |
| 234 private: | 238 private: |
| 235 WebURLRequestPrivate* m_private; | 239 WebURLRequestPrivate* m_private; |
| 236 }; | 240 }; |
| 237 | 241 |
| 238 } // namespace blink | 242 } // namespace blink |
| 239 | 243 |
| 240 #endif | 244 #endif |
| OLD | NEW |