| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef FetchRequest_h | 26 #ifndef FetchRequest_h |
| 27 #define FetchRequest_h | 27 #define FetchRequest_h |
| 28 | 28 |
| 29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
| 30 #include "core/fetch/ClientHintsPreferences.h" | 30 #include "core/fetch/ClientHintsPreferences.h" |
| 31 #include "core/fetch/FetchInitiatorInfo.h" | 31 #include "core/fetch/FetchInitiatorInfo.h" |
| 32 #include "core/fetch/IntegrityMetadata.h" | 32 #include "core/fetch/IntegrityMetadata.h" |
| 33 #include "core/fetch/ResourceLoaderOptions.h" | 33 #include "core/fetch/ResourceLoaderOptions.h" |
| 34 #include "platform/CrossOriginAttributeValue.h" |
| 34 #include "platform/network/ResourceLoadPriority.h" | 35 #include "platform/network/ResourceLoadPriority.h" |
| 35 #include "platform/network/ResourceRequest.h" | 36 #include "platform/network/ResourceRequest.h" |
| 36 #include "wtf/Allocator.h" | 37 #include "wtf/Allocator.h" |
| 37 #include "wtf/text/AtomicString.h" | 38 #include "wtf/text/AtomicString.h" |
| 38 | 39 |
| 39 namespace blink { | 40 namespace blink { |
| 40 class SecurityOrigin; | 41 class SecurityOrigin; |
| 41 | 42 |
| 42 class CORE_EXPORT FetchRequest { | 43 class CORE_EXPORT FetchRequest { |
| 43 STACK_ALLOCATED(); | 44 STACK_ALLOCATED(); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 84 |
| 84 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPrefer
ences; } | 85 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPrefer
ences; } |
| 85 | 86 |
| 86 bool forPreload() const { return m_forPreload; } | 87 bool forPreload() const { return m_forPreload; } |
| 87 void setForPreload(bool forPreload) { m_forPreload = forPreload; } | 88 void setForPreload(bool forPreload) { m_forPreload = forPreload; } |
| 88 | 89 |
| 89 bool avoidBlockingOnLoad() { return m_avoidBlockingOnLoad; } | 90 bool avoidBlockingOnLoad() { return m_avoidBlockingOnLoad; } |
| 90 void setAvoidBlockingOnLoad(bool doNotBlock) { m_avoidBlockingOnLoad = doNot
Block; } | 91 void setAvoidBlockingOnLoad(bool doNotBlock) { m_avoidBlockingOnLoad = doNot
Block; } |
| 91 | 92 |
| 92 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit
yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp
tion; } | 93 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit
yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp
tion; } |
| 93 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, Credent
ialRequest); | 94 void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue)
; |
| 94 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials); | |
| 95 void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossO
riginMode); | |
| 96 OriginRestriction originRestriction() const { return m_originRestriction; } | 95 OriginRestriction originRestriction() const { return m_originRestriction; } |
| 97 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti
on = restriction; } | 96 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti
on = restriction; } |
| 98 const IntegrityMetadataSet& integrityMetadata() const { return m_integrityMe
tadata; } | 97 const IntegrityMetadataSet& integrityMetadata() const { return m_integrityMe
tadata; } |
| 99 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrit
yMetadata = metadata; } | 98 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrit
yMetadata = metadata; } |
| 100 | 99 |
| 101 private: | 100 private: |
| 102 ResourceRequest m_resourceRequest; | 101 ResourceRequest m_resourceRequest; |
| 103 String m_charset; | 102 String m_charset; |
| 104 ResourceLoaderOptions m_options; | 103 ResourceLoaderOptions m_options; |
| 105 ResourceLoadPriority m_priority; | 104 ResourceLoadPriority m_priority; |
| 106 bool m_forPreload; | 105 bool m_forPreload; |
| 107 bool m_avoidBlockingOnLoad; | 106 bool m_avoidBlockingOnLoad; |
| 108 DeferOption m_defer; | 107 DeferOption m_defer; |
| 109 OriginRestriction m_originRestriction; | 108 OriginRestriction m_originRestriction; |
| 110 ResourceWidth m_resourceWidth; | 109 ResourceWidth m_resourceWidth; |
| 111 ClientHintsPreferences m_clientHintPreferences; | 110 ClientHintsPreferences m_clientHintPreferences; |
| 112 IntegrityMetadataSet m_integrityMetadata; | 111 IntegrityMetadataSet m_integrityMetadata; |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 } // namespace blink | 114 } // namespace blink |
| 116 | 115 |
| 117 #endif | 116 #endif |
| OLD | NEW |