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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 #include "CSSStyleSheet.h" | 35 #include "CSSStyleSheet.h" |
36 #include "CachedCSSStyleSheet.h" | 36 #include "CachedCSSStyleSheet.h" |
37 #include "CachedResourceLoader.h" | 37 #include "CachedResourceLoader.h" |
38 #include "CachedResourceRequest.h" | 38 #include "CachedResourceRequest.h" |
39 #include "ContainerNode.h" | 39 #include "ContainerNode.h" |
40 #include "Document.h" | 40 #include "Document.h" |
41 #include "Frame.h" | 41 #include "Frame.h" |
42 #include "FrameView.h" | 42 #include "FrameView.h" |
43 #include "LinkRelAttribute.h" | 43 #include "LinkRelAttribute.h" |
44 #include "PrerenderHandle.h" | |
45 #include "Prerenderer.h" | 44 #include "Prerenderer.h" |
46 #include "Settings.h" | 45 #include "Settings.h" |
47 #include "StyleResolver.h" | 46 #include "StyleResolver.h" |
| 47 #include "core/platform/PrerenderHandle.h" |
48 #include "core/platform/network/DNS.h" | 48 #include "core/platform/network/DNS.h" |
49 | 49 |
50 namespace WebCore { | 50 namespace WebCore { |
51 | 51 |
52 LinkLoader::LinkLoader(LinkLoaderClient* client) | 52 LinkLoader::LinkLoader(LinkLoaderClient* client) |
53 : m_client(client) | 53 : m_client(client) |
54 , m_linkLoadTimer(this, &LinkLoader::linkLoadTimerFired) | 54 , m_linkLoadTimer(this, &LinkLoader::linkLoadTimerFired) |
55 , m_linkLoadingErrorTimer(this, &LinkLoader::linkLoadingErrorTimerFired) | 55 , m_linkLoadingErrorTimer(this, &LinkLoader::linkLoadingErrorTimerFired) |
56 { | 56 { |
57 } | 57 } |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // Only prerenders need treatment here; other links either use the CachedRes
ource interface, or are notionally | 168 // Only prerenders need treatment here; other links either use the CachedRes
ource interface, or are notionally |
169 // atomic (dns prefetch). | 169 // atomic (dns prefetch). |
170 if (m_prerenderHandle) { | 170 if (m_prerenderHandle) { |
171 m_prerenderHandle->cancel(); | 171 m_prerenderHandle->cancel(); |
172 m_prerenderHandle->removeClient(); | 172 m_prerenderHandle->removeClient(); |
173 m_prerenderHandle.clear(); | 173 m_prerenderHandle.clear(); |
174 } | 174 } |
175 } | 175 } |
176 | 176 |
177 } | 177 } |
OLD | NEW |