| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // from ResourceClient | 56 // from ResourceClient |
| 57 virtual void notifyFinished(Resource*) override; | 57 virtual void notifyFinished(Resource*) override; |
| 58 | 58 |
| 59 // from PrerenderClient | 59 // from PrerenderClient |
| 60 virtual void didStartPrerender() override; | 60 virtual void didStartPrerender() override; |
| 61 virtual void didStopPrerender() override; | 61 virtual void didStopPrerender() override; |
| 62 virtual void didSendLoadForPrerender() override; | 62 virtual void didSendLoadForPrerender() override; |
| 63 virtual void didSendDOMContentLoadedForPrerender() override; | 63 virtual void didSendDOMContentLoadedForPrerender() override; |
| 64 | 64 |
| 65 void released(); | 65 void released(); |
| 66 bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode,
const String& type, const KURL&, Document&); | 66 bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode,
const String& type, const String& as, const KURL&, Document&); |
| 67 static bool loadLinkFromHeader(const String& headerValue, Document*); | 67 static bool loadLinkFromHeader(const String& headerValue, Document*); |
| 68 | 68 |
| 69 DECLARE_TRACE(); | 69 DECLARE_TRACE(); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 void linkLoadTimerFired(Timer<LinkLoader>*); | 72 void linkLoadTimerFired(Timer<LinkLoader>*); |
| 73 void linkLoadingErrorTimerFired(Timer<LinkLoader>*); | 73 void linkLoadingErrorTimerFired(Timer<LinkLoader>*); |
| 74 void preloadIfNeeded(const LinkRelAttribute&, const KURL& href, Document&, c
onst String& as); |
| 74 | 75 |
| 75 LinkLoaderClient* m_client; | 76 LinkLoaderClient* m_client; |
| 76 | 77 |
| 77 Timer<LinkLoader> m_linkLoadTimer; | 78 Timer<LinkLoader> m_linkLoadTimer; |
| 78 Timer<LinkLoader> m_linkLoadingErrorTimer; | 79 Timer<LinkLoader> m_linkLoadingErrorTimer; |
| 79 | 80 |
| 80 OwnPtrWillBeMember<PrerenderHandle> m_prerender; | 81 OwnPtrWillBeMember<PrerenderHandle> m_prerender; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } | 84 } |
| 84 | 85 |
| 85 #endif | 86 #endif |
| OLD | NEW |