| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 static bool getResourceTypeFromAsAttribute(const String& as, Resource::Type&); | 104 static bool getResourceTypeFromAsAttribute(const String& as, Resource::Type&); |
| 105 | 105 |
| 106 DECLARE_TRACE(); | 106 DECLARE_TRACE(); |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 explicit LinkLoader(LinkLoaderClient*); | 109 explicit LinkLoader(LinkLoaderClient*); |
| 110 | 110 |
| 111 void linkLoadTimerFired(TimerBase*); | 111 void linkLoadTimerFired(TimerBase*); |
| 112 void linkLoadingErrorTimerFired(TimerBase*); | 112 void linkLoadingErrorTimerFired(TimerBase*); |
| 113 void createLinkPreloadResourceClient(Resource*); | 113 void createLinkPreloadResourceClient(Resource*); |
| 114 void prefetchIfNeeded(Document&, | |
| 115 const KURL& href, | |
| 116 const LinkRelAttribute&, | |
| 117 CrossOriginAttributeValue, | |
| 118 ReferrerPolicy); | |
| 119 | 114 |
| 120 Member<LinkLoaderClient> m_client; | 115 Member<LinkLoaderClient> m_client; |
| 121 | 116 |
| 122 Timer<LinkLoader> m_linkLoadTimer; | 117 Timer<LinkLoader> m_linkLoadTimer; |
| 123 Timer<LinkLoader> m_linkLoadingErrorTimer; | 118 Timer<LinkLoader> m_linkLoadingErrorTimer; |
| 124 | 119 |
| 125 Member<PrerenderHandle> m_prerender; | 120 Member<PrerenderHandle> m_prerender; |
| 126 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; | 121 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; |
| 127 }; | 122 }; |
| 128 | 123 |
| 129 } // namespace blink | 124 } // namespace blink |
| 130 | 125 |
| 131 #endif | 126 #endif |
| OLD | NEW |