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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 return m_options.contentSecurityPolicyNonce; | 114 return m_options.contentSecurityPolicyNonce; |
115 } | 115 } |
116 void setContentSecurityPolicyNonce(const String& nonce) { | 116 void setContentSecurityPolicyNonce(const String& nonce) { |
117 m_options.contentSecurityPolicyNonce = nonce; | 117 m_options.contentSecurityPolicyNonce = nonce; |
118 } | 118 } |
119 | 119 |
120 void setParserDisposition(ParserDisposition parserDisposition) { | 120 void setParserDisposition(ParserDisposition parserDisposition) { |
121 m_options.parserDisposition = parserDisposition; | 121 m_options.parserDisposition = parserDisposition; |
122 } | 122 } |
123 | 123 |
| 124 bool isCacheAwareLoadingEnabled() const { |
| 125 return m_isCacheAwareLoadingEnabled; |
| 126 } |
| 127 void setIsCacheAwareLoadingEnabled(bool isCacheAwareLoadingEnabled) { |
| 128 m_isCacheAwareLoadingEnabled = isCacheAwareLoadingEnabled; |
| 129 } |
| 130 |
124 void makeSynchronous(); | 131 void makeSynchronous(); |
125 | 132 |
126 private: | 133 private: |
127 ResourceRequest m_resourceRequest; | 134 ResourceRequest m_resourceRequest; |
128 String m_charset; | 135 String m_charset; |
129 ResourceLoaderOptions m_options; | 136 ResourceLoaderOptions m_options; |
130 bool m_forPreload; | 137 bool m_forPreload; |
131 bool m_linkPreload; | 138 bool m_linkPreload; |
132 double m_preloadDiscoveryTime; | 139 double m_preloadDiscoveryTime; |
133 DeferOption m_defer; | 140 DeferOption m_defer; |
134 OriginRestriction m_originRestriction; | 141 OriginRestriction m_originRestriction; |
| 142 bool m_isCacheAwareLoadingEnabled; |
135 ResourceWidth m_resourceWidth; | 143 ResourceWidth m_resourceWidth; |
136 ClientHintsPreferences m_clientHintPreferences; | 144 ClientHintsPreferences m_clientHintPreferences; |
137 }; | 145 }; |
138 | 146 |
139 } // namespace blink | 147 } // namespace blink |
140 | 148 |
141 #endif | 149 #endif |
OLD | NEW |