| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "platform/heap/Handle.h" | 43 #include "platform/heap/Handle.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class Document; | 47 class Document; |
| 48 class LinkRelAttribute; | 48 class LinkRelAttribute; |
| 49 class NetworkHintsInterface; | 49 class NetworkHintsInterface; |
| 50 class PrerenderHandle; | 50 class PrerenderHandle; |
| 51 struct ViewportDescriptionWrapper; | 51 struct ViewportDescriptionWrapper; |
| 52 | 52 |
| 53 // The LinkLoader can load link rel types icon, dns-prefetch, subresource, prefe
tch and prerender. | 53 // The LinkLoader can load link rel types icon, dns-prefetch, subresource, |
| 54 // prefetch and prerender. |
| 54 class CORE_EXPORT LinkLoader final | 55 class CORE_EXPORT LinkLoader final |
| 55 : public GarbageCollectedFinalized<LinkLoader>, | 56 : public GarbageCollectedFinalized<LinkLoader>, |
| 56 public ResourceOwner<Resource, ResourceClient>, | 57 public ResourceOwner<Resource, ResourceClient>, |
| 57 public PrerenderClient { | 58 public PrerenderClient { |
| 58 USING_GARBAGE_COLLECTED_MIXIN(LinkLoader); | 59 USING_GARBAGE_COLLECTED_MIXIN(LinkLoader); |
| 59 | 60 |
| 60 public: | 61 public: |
| 61 static LinkLoader* create(LinkLoaderClient* client) { | 62 static LinkLoader* create(LinkLoaderClient* client) { |
| 62 return new LinkLoader(client); | 63 return new LinkLoader(client); |
| 63 } | 64 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 Timer<LinkLoader> m_linkLoadTimer; | 116 Timer<LinkLoader> m_linkLoadTimer; |
| 116 Timer<LinkLoader> m_linkLoadingErrorTimer; | 117 Timer<LinkLoader> m_linkLoadingErrorTimer; |
| 117 | 118 |
| 118 Member<PrerenderHandle> m_prerender; | 119 Member<PrerenderHandle> m_prerender; |
| 119 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; | 120 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace blink | 123 } // namespace blink |
| 123 | 124 |
| 124 #endif | 125 #endif |
| OLD | NEW |