| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void didSendDOMContentLoadedForPrerender() override; | 74 void didSendDOMContentLoadedForPrerender() override; |
| 75 | 75 |
| 76 void triggerEvents(const Resource*); | 76 void triggerEvents(const Resource*); |
| 77 | 77 |
| 78 void released(); | 78 void released(); |
| 79 bool loadLink(const LinkRelAttribute&, | 79 bool loadLink(const LinkRelAttribute&, |
| 80 CrossOriginAttributeValue, | 80 CrossOriginAttributeValue, |
| 81 const String& type, | 81 const String& type, |
| 82 const String& as, | 82 const String& as, |
| 83 const String& media, | 83 const String& media, |
| 84 const String& referrerPolicy, |
| 84 const KURL&, | 85 const KURL&, |
| 85 Document&, | 86 Document&, |
| 86 const NetworkHintsInterface&); | 87 const NetworkHintsInterface&); |
| 87 enum CanLoadResources { | 88 enum CanLoadResources { |
| 88 OnlyLoadResources, | 89 OnlyLoadResources, |
| 89 DoNotLoadResources, | 90 DoNotLoadResources, |
| 90 LoadResourcesAndPreconnect | 91 LoadResourcesAndPreconnect |
| 91 }; | 92 }; |
| 92 // Media links cannot be preloaded until the first chunk is parsed. The rest | 93 // Media links cannot be preloaded until the first chunk is parsed. The rest |
| 93 // can be preloaded at commit time. | 94 // can be preloaded at commit time. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 115 Timer<LinkLoader> m_linkLoadTimer; | 116 Timer<LinkLoader> m_linkLoadTimer; |
| 116 Timer<LinkLoader> m_linkLoadingErrorTimer; | 117 Timer<LinkLoader> m_linkLoadingErrorTimer; |
| 117 | 118 |
| 118 Member<PrerenderHandle> m_prerender; | 119 Member<PrerenderHandle> m_prerender; |
| 119 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; | 120 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace blink | 123 } // namespace blink |
| 123 | 124 |
| 124 #endif | 125 #endif |
| OLD | NEW |