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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 * | 29 * |
30 */ | 30 */ |
31 | 31 |
32 #ifndef LinkLoader_h | 32 #ifndef LinkLoader_h |
33 #define LinkLoader_h | 33 #define LinkLoader_h |
34 | 34 |
35 #include "CachedResourceClient.h" | 35 #include "CachedResourceClient.h" |
36 #include "CachedResourceHandle.h" | 36 #include "CachedResourceHandle.h" |
37 #include "LinkLoaderClient.h" | 37 #include "LinkLoaderClient.h" |
38 #include "PrerenderClient.h" | 38 #include "core/platform/PrerenderClient.h" |
39 #include "Timer.h" | 39 #include "core/platform/Timer.h" |
40 | 40 |
41 #include <wtf/RefPtr.h> | 41 #include <wtf/RefPtr.h> |
42 | 42 |
43 namespace WebCore { | 43 namespace WebCore { |
44 | 44 |
45 struct LinkRelAttribute; | 45 struct LinkRelAttribute; |
46 class PrerenderHandle; | 46 class PrerenderHandle; |
47 | 47 |
48 // The LinkLoader can load link rel types icon, dns-prefetch, subresource, prefe
tch and prerender. | 48 // The LinkLoader can load link rel types icon, dns-prefetch, subresource, prefe
tch and prerender. |
49 class LinkLoader : public CachedResourceClient, public PrerenderClient { | 49 class LinkLoader : public CachedResourceClient, public PrerenderClient { |
(...skipping 23 matching lines...) Expand all Loading... |
73 CachedResourceHandle<CachedResource> m_cachedLinkResource; | 73 CachedResourceHandle<CachedResource> m_cachedLinkResource; |
74 Timer<LinkLoader> m_linkLoadTimer; | 74 Timer<LinkLoader> m_linkLoadTimer; |
75 Timer<LinkLoader> m_linkLoadingErrorTimer; | 75 Timer<LinkLoader> m_linkLoadingErrorTimer; |
76 | 76 |
77 RefPtr<PrerenderHandle> m_prerenderHandle; | 77 RefPtr<PrerenderHandle> m_prerenderHandle; |
78 }; | 78 }; |
79 | 79 |
80 } | 80 } |
81 | 81 |
82 #endif | 82 #endif |
OLD | NEW |