| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 118     return m_options.contentSecurityPolicyNonce; | 118     return m_options.contentSecurityPolicyNonce; | 
| 119   } | 119   } | 
| 120   void setContentSecurityPolicyNonce(const String& nonce) { | 120   void setContentSecurityPolicyNonce(const String& nonce) { | 
| 121     m_options.contentSecurityPolicyNonce = nonce; | 121     m_options.contentSecurityPolicyNonce = nonce; | 
| 122   } | 122   } | 
| 123 | 123 | 
| 124   void setParserDisposition(ParserDisposition parserDisposition) { | 124   void setParserDisposition(ParserDisposition parserDisposition) { | 
| 125     m_options.parserDisposition = parserDisposition; | 125     m_options.parserDisposition = parserDisposition; | 
| 126   } | 126   } | 
| 127 | 127 | 
|  | 128   bool isCacheAwareLoadingEnabled() const { | 
|  | 129     return m_isCacheAwareLoadingEnabled; | 
|  | 130   } | 
|  | 131   void setIsCacheAwareLoadingEnabled(bool isCacheAwareLoadingEnabled) { | 
|  | 132     m_isCacheAwareLoadingEnabled = isCacheAwareLoadingEnabled; | 
|  | 133   } | 
|  | 134 | 
| 128   void makeSynchronous(); | 135   void makeSynchronous(); | 
| 129 | 136 | 
| 130   PlaceholderImageRequestType placeholderImageRequestType() const { | 137   PlaceholderImageRequestType placeholderImageRequestType() const { | 
| 131     return m_placeholderImageRequestType; | 138     return m_placeholderImageRequestType; | 
| 132   } | 139   } | 
| 133 | 140 | 
| 134   // Configures the request to load an image placeholder if the request is | 141   // Configures the request to load an image placeholder if the request is | 
| 135   // eligible (e.g. the url's protocol is HTTP, etc.). If this request is | 142   // eligible (e.g. the url's protocol is HTTP, etc.). If this request is | 
| 136   // non-eligible, this method doesn't modify the ResourceRequest. Calling this | 143   // non-eligible, this method doesn't modify the ResourceRequest. Calling this | 
| 137   // method sets m_placeholderImageRequestType to the appropriate value. | 144   // method sets m_placeholderImageRequestType to the appropriate value. | 
| 138   void setAllowImagePlaceholder(); | 145   void setAllowImagePlaceholder(); | 
| 139 | 146 | 
| 140  private: | 147  private: | 
| 141   ResourceRequest m_resourceRequest; | 148   ResourceRequest m_resourceRequest; | 
| 142   String m_charset; | 149   String m_charset; | 
| 143   ResourceLoaderOptions m_options; | 150   ResourceLoaderOptions m_options; | 
| 144   bool m_forPreload; | 151   bool m_forPreload; | 
| 145   bool m_linkPreload; | 152   bool m_linkPreload; | 
| 146   double m_preloadDiscoveryTime; | 153   double m_preloadDiscoveryTime; | 
| 147   DeferOption m_defer; | 154   DeferOption m_defer; | 
| 148   OriginRestriction m_originRestriction; | 155   OriginRestriction m_originRestriction; | 
| 149   ResourceWidth m_resourceWidth; | 156   ResourceWidth m_resourceWidth; | 
| 150   ClientHintsPreferences m_clientHintPreferences; | 157   ClientHintsPreferences m_clientHintPreferences; | 
| 151   PlaceholderImageRequestType m_placeholderImageRequestType; | 158   PlaceholderImageRequestType m_placeholderImageRequestType; | 
|  | 159   bool m_isCacheAwareLoadingEnabled; | 
| 152 }; | 160 }; | 
| 153 | 161 | 
| 154 }  // namespace blink | 162 }  // namespace blink | 
| 155 | 163 | 
| 156 #endif | 164 #endif | 
| OLD | NEW | 
|---|