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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 double preloadDiscoveryTime() { return m_preloadDiscoveryTime; } | 90 double preloadDiscoveryTime() { return m_preloadDiscoveryTime; } |
91 | 91 |
92 bool isLinkPreload() { return m_linkPreload; } | 92 bool isLinkPreload() { return m_linkPreload; } |
93 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } | 93 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } |
94 | 94 |
95 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit
yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp
tion; } | 95 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit
yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp
tion; } |
96 void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue)
; | 96 void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue)
; |
97 OriginRestriction getOriginRestriction() const { return m_originRestriction;
} | 97 OriginRestriction getOriginRestriction() const { return m_originRestriction;
} |
98 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti
on = restriction; } | 98 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti
on = restriction; } |
99 const IntegrityMetadataSet& integrityMetadata() const { return m_integrityMe
tadata; } | 99 const IntegrityMetadataSet integrityMetadata() const { return m_options.inte
grityMetadata; } |
100 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrit
yMetadata = metadata; } | 100 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_options.
integrityMetadata = metadata; } |
101 | 101 |
102 String contentSecurityPolicyNonce() const { return m_options.contentSecurity
PolicyNonce; } | 102 String contentSecurityPolicyNonce() const { return m_options.contentSecurity
PolicyNonce; } |
103 void setContentSecurityPolicyNonce(const String& nonce) { m_options.contentS
ecurityPolicyNonce = nonce; } | 103 void setContentSecurityPolicyNonce(const String& nonce) { m_options.contentS
ecurityPolicyNonce = nonce; } |
104 | 104 |
105 private: | 105 private: |
106 ResourceRequest m_resourceRequest; | 106 ResourceRequest m_resourceRequest; |
107 String m_charset; | 107 String m_charset; |
108 ResourceLoaderOptions m_options; | 108 ResourceLoaderOptions m_options; |
109 ResourceLoadPriority m_priority; | 109 ResourceLoadPriority m_priority; |
110 bool m_forPreload; | 110 bool m_forPreload; |
111 bool m_linkPreload; | 111 bool m_linkPreload; |
112 double m_preloadDiscoveryTime; | 112 double m_preloadDiscoveryTime; |
113 DeferOption m_defer; | 113 DeferOption m_defer; |
114 OriginRestriction m_originRestriction; | 114 OriginRestriction m_originRestriction; |
115 ResourceWidth m_resourceWidth; | 115 ResourceWidth m_resourceWidth; |
116 ClientHintsPreferences m_clientHintPreferences; | 116 ClientHintsPreferences m_clientHintPreferences; |
117 IntegrityMetadataSet m_integrityMetadata; | |
118 }; | 117 }; |
119 | 118 |
120 } // namespace blink | 119 } // namespace blink |
121 | 120 |
122 #endif | 121 #endif |
OLD | NEW |