Chromium Code Reviews| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 void SetOriginRestriction(OriginRestriction restriction) { | 148 void SetOriginRestriction(OriginRestriction restriction) { |
| 149 origin_restriction_ = restriction; | 149 origin_restriction_ = restriction; |
| 150 } | 150 } |
| 151 const IntegrityMetadataSet IntegrityMetadata() const { | 151 const IntegrityMetadataSet IntegrityMetadata() const { |
| 152 return options_.integrity_metadata; | 152 return options_.integrity_metadata; |
| 153 } | 153 } |
| 154 void SetIntegrityMetadata(const IntegrityMetadataSet& metadata) { | 154 void SetIntegrityMetadata(const IntegrityMetadataSet& metadata) { |
| 155 options_.integrity_metadata = metadata; | 155 options_.integrity_metadata = metadata; |
| 156 } | 156 } |
| 157 | 157 |
| 158 void SetIntegrityValue(const String& integrity) { | |
|
yhirano
2017/06/30 09:11:57
Please remove this and use MutableResourceRequest(
xiaofengzhang
2017/07/07 00:10:14
Done.
| |
| 159 resource_request_.SetFetchIntegrity(AtomicString(integrity)); | |
| 160 } | |
| 161 | |
| 158 String ContentSecurityPolicyNonce() const { | 162 String ContentSecurityPolicyNonce() const { |
| 159 return options_.content_security_policy_nonce; | 163 return options_.content_security_policy_nonce; |
| 160 } | 164 } |
| 161 void SetContentSecurityPolicyNonce(const String& nonce) { | 165 void SetContentSecurityPolicyNonce(const String& nonce) { |
| 162 options_.content_security_policy_nonce = nonce; | 166 options_.content_security_policy_nonce = nonce; |
| 163 } | 167 } |
| 164 | 168 |
| 165 void SetParserDisposition(ParserDisposition parser_disposition) { | 169 void SetParserDisposition(ParserDisposition parser_disposition) { |
| 166 options_.parser_disposition = parser_disposition; | 170 options_.parser_disposition = parser_disposition; |
| 167 } | 171 } |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 195 DeferOption defer_; | 199 DeferOption defer_; |
| 196 OriginRestriction origin_restriction_; | 200 OriginRestriction origin_restriction_; |
| 197 ResourceWidth resource_width_; | 201 ResourceWidth resource_width_; |
| 198 ClientHintsPreferences client_hint_preferences_; | 202 ClientHintsPreferences client_hint_preferences_; |
| 199 PlaceholderImageRequestType placeholder_image_request_type_; | 203 PlaceholderImageRequestType placeholder_image_request_type_; |
| 200 }; | 204 }; |
| 201 | 205 |
| 202 } // namespace blink | 206 } // namespace blink |
| 203 | 207 |
| 204 #endif | 208 #endif |
| OLD | NEW |