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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 KURL&, Document&); |
| 67 static bool loadLinkFromHeader(const String& headerValue, Document*); |
67 | 68 |
68 void trace(Visitor*); | 69 void trace(Visitor*); |
69 | 70 |
70 private: | 71 private: |
71 void linkLoadTimerFired(Timer<LinkLoader>*); | 72 void linkLoadTimerFired(Timer<LinkLoader>*); |
72 void linkLoadingErrorTimerFired(Timer<LinkLoader>*); | 73 void linkLoadingErrorTimerFired(Timer<LinkLoader>*); |
73 | 74 |
74 LinkLoaderClient* m_client; | 75 LinkLoaderClient* m_client; |
75 | 76 |
76 Timer<LinkLoader> m_linkLoadTimer; | 77 Timer<LinkLoader> m_linkLoadTimer; |
77 Timer<LinkLoader> m_linkLoadingErrorTimer; | 78 Timer<LinkLoader> m_linkLoadingErrorTimer; |
78 | 79 |
79 OwnPtrWillBeMember<PrerenderHandle> m_prerender; | 80 OwnPtrWillBeMember<PrerenderHandle> m_prerender; |
80 }; | 81 }; |
81 | 82 |
82 } | 83 } |
83 | 84 |
84 #endif | 85 #endif |
OLD | NEW |