| 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 BLINK_PLATFORM_EXPORT void SetFetchRequestMode(FetchRequestMode); | 308 BLINK_PLATFORM_EXPORT void SetFetchRequestMode(FetchRequestMode); |
| 309 | 309 |
| 310 // The credentials mode which will be passed to the ServiceWorker. | 310 // The credentials mode which will be passed to the ServiceWorker. |
| 311 BLINK_PLATFORM_EXPORT FetchCredentialsMode GetFetchCredentialsMode() const; | 311 BLINK_PLATFORM_EXPORT FetchCredentialsMode GetFetchCredentialsMode() const; |
| 312 BLINK_PLATFORM_EXPORT void SetFetchCredentialsMode(FetchCredentialsMode); | 312 BLINK_PLATFORM_EXPORT void SetFetchCredentialsMode(FetchCredentialsMode); |
| 313 | 313 |
| 314 // The redirect mode which is used in Fetch API. | 314 // The redirect mode which is used in Fetch API. |
| 315 BLINK_PLATFORM_EXPORT FetchRedirectMode GetFetchRedirectMode() const; | 315 BLINK_PLATFORM_EXPORT FetchRedirectMode GetFetchRedirectMode() const; |
| 316 BLINK_PLATFORM_EXPORT void SetFetchRedirectMode(FetchRedirectMode); | 316 BLINK_PLATFORM_EXPORT void SetFetchRedirectMode(FetchRedirectMode); |
| 317 | 317 |
| 318 // The integrity which is used in Fetch API. |
| 319 BLINK_PLATFORM_EXPORT WebString GetFetchIntegrity() const; |
| 320 BLINK_PLATFORM_EXPORT void SetFetchIntegrity(const WebString&); |
| 321 |
| 318 // The PreviewsState which determines whether to request a Preview version of | 322 // The PreviewsState which determines whether to request a Preview version of |
| 319 // the resource. The PreviewsState is a bitmask of potentially several | 323 // the resource. The PreviewsState is a bitmask of potentially several |
| 320 // Previews optimizations. | 324 // Previews optimizations. |
| 321 BLINK_PLATFORM_EXPORT PreviewsState GetPreviewsState() const; | 325 BLINK_PLATFORM_EXPORT PreviewsState GetPreviewsState() const; |
| 322 BLINK_PLATFORM_EXPORT void SetPreviewsState(PreviewsState); | 326 BLINK_PLATFORM_EXPORT void SetPreviewsState(PreviewsState); |
| 323 | 327 |
| 324 // Extra data associated with the underlying resource request. Resource | 328 // Extra data associated with the underlying resource request. Resource |
| 325 // requests can be copied. If non-null, each copy of a resource requests | 329 // requests can be copied. If non-null, each copy of a resource requests |
| 326 // holds a pointer to the extra data, and the extra data pointer will be | 330 // holds a pointer to the extra data, and the extra data pointer will be |
| 327 // deleted when the last resource request is destroyed. Setting the extra | 331 // deleted when the last resource request is destroyed. Setting the extra |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 // instance it contains. | 385 // instance it contains. |
| 382 std::unique_ptr<ResourceRequestContainer> owned_resource_request_; | 386 std::unique_ptr<ResourceRequestContainer> owned_resource_request_; |
| 383 | 387 |
| 384 // Should never be null. | 388 // Should never be null. |
| 385 ResourceRequest* resource_request_; | 389 ResourceRequest* resource_request_; |
| 386 }; | 390 }; |
| 387 | 391 |
| 388 } // namespace blink | 392 } // namespace blink |
| 389 | 393 |
| 390 #endif | 394 #endif |
| OLD | NEW |