| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2013 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "core/fetch/FetchRequest.h" | 29 #include "core/fetch/FetchRequest.h" |
| 30 #include "core/fetch/Resource.h" | 30 #include "core/fetch/Resource.h" |
| 31 #include "core/html/parser/PreloadRequest.h" | 31 #include "core/html/parser/PreloadRequest.h" |
| 32 #include "core/html/parser/ResourcePreloader.h" | 32 #include "core/html/parser/ResourcePreloader.h" |
| 33 #include "core/loader/NetworkHintsInterface.h" | 33 #include "core/loader/NetworkHintsInterface.h" |
| 34 #include "wtf/CurrentTime.h" | 34 #include "wtf/CurrentTime.h" |
| 35 #include "wtf/text/TextPosition.h" | 35 #include "wtf/text/TextPosition.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class CORE_EXPORT HTMLResourcePreloader final : public NoBaseWillBeGarbageCollec
ted<HTMLResourcePreloader>, public ResourcePreloader { | 39 class CORE_EXPORT HTMLResourcePreloader final : public GarbageCollected<HTMLReso
urcePreloader>, public ResourcePreloader { |
| 40 WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); USING_FAST_MALLOC_WILL_BE_REMOV
ED(HTMLResourcePreloader); | 40 WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); |
| 41 friend class HTMLResourcePreloaderTest; | 41 friend class HTMLResourcePreloaderTest; |
| 42 public: | 42 public: |
| 43 static PassOwnPtrWillBeRawPtr<HTMLResourcePreloader> create(Document&); | 43 static RawPtr<HTMLResourcePreloader> create(Document&); |
| 44 DECLARE_TRACE(); | 44 DECLARE_TRACE(); |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 void preload(PassOwnPtr<PreloadRequest>, const NetworkHintsInterface&) overr
ide; | 47 void preload(PassOwnPtr<PreloadRequest>, const NetworkHintsInterface&) overr
ide; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 explicit HTMLResourcePreloader(Document&); | 50 explicit HTMLResourcePreloader(Document&); |
| 51 | 51 |
| 52 RawPtrWillBeMember<Document> m_document; | 52 Member<Document> m_document; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace blink | 55 } // namespace blink |
| 56 | 56 |
| 57 #endif | 57 #endif |
| OLD | NEW |