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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 void didSendDOMContentLoadedForPrerender() override; | 75 void didSendDOMContentLoadedForPrerender() override; |
76 | 76 |
77 void triggerEvents(const Resource*); | 77 void triggerEvents(const Resource*); |
78 | 78 |
79 void released(); | 79 void released(); |
80 bool loadLink(const LinkRelAttribute&, | 80 bool loadLink(const LinkRelAttribute&, |
81 CrossOriginAttributeValue, | 81 CrossOriginAttributeValue, |
82 const String& type, | 82 const String& type, |
83 const String& as, | 83 const String& as, |
84 const String& media, | 84 const String& media, |
| 85 ReferrerPolicy, |
85 const KURL&, | 86 const KURL&, |
86 Document&, | 87 Document&, |
87 const NetworkHintsInterface&); | 88 const NetworkHintsInterface&); |
88 enum CanLoadResources { | 89 enum CanLoadResources { |
89 OnlyLoadResources, | 90 OnlyLoadResources, |
90 DoNotLoadResources, | 91 DoNotLoadResources, |
91 LoadResourcesAndPreconnect | 92 LoadResourcesAndPreconnect |
92 }; | 93 }; |
93 // Media links cannot be preloaded until the first chunk is parsed. The rest | 94 // Media links cannot be preloaded until the first chunk is parsed. The rest |
94 // can be preloaded at commit time. | 95 // can be preloaded at commit time. |
(...skipping 21 matching lines...) Expand all Loading... |
116 Timer<LinkLoader> m_linkLoadTimer; | 117 Timer<LinkLoader> m_linkLoadTimer; |
117 Timer<LinkLoader> m_linkLoadingErrorTimer; | 118 Timer<LinkLoader> m_linkLoadingErrorTimer; |
118 | 119 |
119 Member<PrerenderHandle> m_prerender; | 120 Member<PrerenderHandle> m_prerender; |
120 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; | 121 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; |
121 }; | 122 }; |
122 | 123 |
123 } // namespace blink | 124 } // namespace blink |
124 | 125 |
125 #endif | 126 #endif |
OLD | NEW |