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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_integrityMe
tadata; } |
100 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrit
yMetadata = metadata; } | 100 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrit
yMetadata = metadata; } |
101 | 101 |
| 102 String contentSecurityPolicyNonce() const { return m_options.contentSecurity
PolicyNonce; } |
| 103 void setContentSecurityPolicyNonce(const String& nonce) { m_options.contentS
ecurityPolicyNonce = nonce; } |
| 104 |
102 private: | 105 private: |
103 ResourceRequest m_resourceRequest; | 106 ResourceRequest m_resourceRequest; |
104 String m_charset; | 107 String m_charset; |
105 ResourceLoaderOptions m_options; | 108 ResourceLoaderOptions m_options; |
106 ResourceLoadPriority m_priority; | 109 ResourceLoadPriority m_priority; |
107 bool m_forPreload; | 110 bool m_forPreload; |
108 bool m_linkPreload; | 111 bool m_linkPreload; |
109 double m_preloadDiscoveryTime; | 112 double m_preloadDiscoveryTime; |
110 DeferOption m_defer; | 113 DeferOption m_defer; |
111 OriginRestriction m_originRestriction; | 114 OriginRestriction m_originRestriction; |
112 ResourceWidth m_resourceWidth; | 115 ResourceWidth m_resourceWidth; |
113 ClientHintsPreferences m_clientHintPreferences; | 116 ClientHintsPreferences m_clientHintPreferences; |
114 IntegrityMetadataSet m_integrityMetadata; | 117 IntegrityMetadataSet m_integrityMetadata; |
115 }; | 118 }; |
116 | 119 |
117 } // namespace blink | 120 } // namespace blink |
118 | 121 |
119 #endif | 122 #endif |
OLD | NEW |