| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 79     // can be preloaded at commit time. | 79     // can be preloaded at commit time. | 
| 80     enum MediaPreloadPolicy { LoadAll, OnlyLoadNonMedia, OnlyLoadMedia }; | 80     enum MediaPreloadPolicy { LoadAll, OnlyLoadNonMedia, OnlyLoadMedia }; | 
| 81     static void loadLinksFromHeader(const String& headerValue, const KURL& baseU
     RL, Document*, const NetworkHintsInterface&, CanLoadResources, MediaPreloadPolic
     y, ViewportDescriptionWrapper*); | 81     static void loadLinksFromHeader(const String& headerValue, const KURL& baseU
     RL, Document*, const NetworkHintsInterface&, CanLoadResources, MediaPreloadPolic
     y, ViewportDescriptionWrapper*); | 
| 82     static bool getResourceTypeFromAsAttribute(const String& as, Resource::Type&
     ); | 82     static bool getResourceTypeFromAsAttribute(const String& as, Resource::Type&
     ); | 
| 83 | 83 | 
| 84     DECLARE_TRACE(); | 84     DECLARE_TRACE(); | 
| 85 | 85 | 
| 86 private: | 86 private: | 
| 87     explicit LinkLoader(LinkLoaderClient*); | 87     explicit LinkLoader(LinkLoaderClient*); | 
| 88 | 88 | 
| 89     void linkLoadTimerFired(Timer<LinkLoader>*); | 89     void linkLoadTimerFired(TimerBase*); | 
| 90     void linkLoadingErrorTimerFired(Timer<LinkLoader>*); | 90     void linkLoadingErrorTimerFired(TimerBase*); | 
| 91     void createLinkPreloadResourceClient(Resource*); | 91     void createLinkPreloadResourceClient(Resource*); | 
| 92 | 92 | 
| 93     Member<LinkLoaderClient> m_client; | 93     Member<LinkLoaderClient> m_client; | 
| 94 | 94 | 
| 95     Timer<LinkLoader> m_linkLoadTimer; | 95     Timer<LinkLoader> m_linkLoadTimer; | 
| 96     Timer<LinkLoader> m_linkLoadingErrorTimer; | 96     Timer<LinkLoader> m_linkLoadingErrorTimer; | 
| 97 | 97 | 
| 98     Member<PrerenderHandle> m_prerender; | 98     Member<PrerenderHandle> m_prerender; | 
| 99     Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; | 99     Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; | 
| 100 }; | 100 }; | 
| 101 | 101 | 
| 102 } // namespace blink | 102 } // namespace blink | 
| 103 | 103 | 
| 104 #endif | 104 #endif | 
| OLD | NEW | 
|---|