| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 const ResourceLoaderOptions& options() const { return m_options; } | 73 const ResourceLoaderOptions& options() const { return m_options; } |
| 74 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} | 74 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} |
| 75 | 75 |
| 76 ResourceLoadPriority priority() const { return m_priority; } | 76 ResourceLoadPriority priority() const { return m_priority; } |
| 77 void setPriority(ResourceLoadPriority priority) { m_priority = priority; } | 77 void setPriority(ResourceLoadPriority priority) { m_priority = priority; } |
| 78 | 78 |
| 79 DeferOption defer() const { return m_defer; } | 79 DeferOption defer() const { return m_defer; } |
| 80 void setDefer(DeferOption defer) { m_defer = defer; } | 80 void setDefer(DeferOption defer) { m_defer = defer; } |
| 81 | 81 |
| 82 ResourceWidth resourceWidth() const { return m_resourceWidth; } | 82 ResourceWidth getResourceWidth() const { return m_resourceWidth; } |
| 83 void setResourceWidth(ResourceWidth); | 83 void setResourceWidth(ResourceWidth); |
| 84 | 84 |
| 85 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPrefer
ences; } | 85 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPrefer
ences; } |
| 86 | 86 |
| 87 bool forPreload() const { return m_forPreload; } | 87 bool forPreload() const { return m_forPreload; } |
| 88 void setForPreload(bool forPreload) { m_forPreload = forPreload; } | 88 void setForPreload(bool forPreload) { m_forPreload = forPreload; } |
| 89 | 89 |
| 90 bool isLinkPreload() { return m_linkPreload; } | 90 bool isLinkPreload() { return m_linkPreload; } |
| 91 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } | 91 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } |
| 92 | 92 |
| 93 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit
yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp
tion; } | 93 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit
yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp
tion; } |
| 94 void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue)
; | 94 void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue)
; |
| 95 OriginRestriction originRestriction() const { return m_originRestriction; } | 95 OriginRestriction getOriginRestriction() const { return m_originRestriction;
} |
| 96 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti
on = restriction; } | 96 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti
on = restriction; } |
| 97 const IntegrityMetadataSet& integrityMetadata() const { return m_integrityMe
tadata; } | 97 const IntegrityMetadataSet& integrityMetadata() const { return m_integrityMe
tadata; } |
| 98 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrit
yMetadata = metadata; } | 98 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrit
yMetadata = metadata; } |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 ResourceRequest m_resourceRequest; | 101 ResourceRequest m_resourceRequest; |
| 102 String m_charset; | 102 String m_charset; |
| 103 ResourceLoaderOptions m_options; | 103 ResourceLoaderOptions m_options; |
| 104 ResourceLoadPriority m_priority; | 104 ResourceLoadPriority m_priority; |
| 105 bool m_forPreload; | 105 bool m_forPreload; |
| 106 bool m_linkPreload; | 106 bool m_linkPreload; |
| 107 DeferOption m_defer; | 107 DeferOption m_defer; |
| 108 OriginRestriction m_originRestriction; | 108 OriginRestriction m_originRestriction; |
| 109 ResourceWidth m_resourceWidth; | 109 ResourceWidth m_resourceWidth; |
| 110 ClientHintsPreferences m_clientHintPreferences; | 110 ClientHintsPreferences m_clientHintPreferences; |
| 111 IntegrityMetadataSet m_integrityMetadata; | 111 IntegrityMetadataSet m_integrityMetadata; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace blink | 114 } // namespace blink |
| 115 | 115 |
| 116 #endif | 116 #endif |
| OLD | NEW |