| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 double m_discoveryTime; | 83 double m_discoveryTime; |
| 84 FetchRequest::DeferOption m_defer; | 84 FetchRequest::DeferOption m_defer; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 typedef Vector<OwnPtr<PreloadRequest>> PreloadRequestStream; | 87 typedef Vector<OwnPtr<PreloadRequest>> PreloadRequestStream; |
| 88 | 88 |
| 89 class HTMLResourcePreloader final : public NoBaseWillBeGarbageCollected<HTMLReso
urcePreloader> { | 89 class HTMLResourcePreloader final : public NoBaseWillBeGarbageCollected<HTMLReso
urcePreloader> { |
| 90 WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); WTF_MAKE_FAST_ALLOCATED_WILL_BE
_REMOVED; | 90 WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); WTF_MAKE_FAST_ALLOCATED_WILL_BE
_REMOVED; |
| 91 public: | 91 public: |
| 92 static PassOwnPtrWillBeRawPtr<HTMLResourcePreloader> create(Document&); | 92 static PassOwnPtrWillBeRawPtr<HTMLResourcePreloader> create(Document&); |
| 93 void trace(Visitor*); | 93 DECLARE_TRACE(); |
| 94 | 94 |
| 95 void takeAndPreload(PreloadRequestStream&); | 95 void takeAndPreload(PreloadRequestStream&); |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 explicit HTMLResourcePreloader(Document&); | 98 explicit HTMLResourcePreloader(Document&); |
| 99 | 99 |
| 100 void preload(PassOwnPtr<PreloadRequest>); | 100 void preload(PassOwnPtr<PreloadRequest>); |
| 101 | 101 |
| 102 RawPtrWillBeMember<Document> m_document; | 102 RawPtrWillBeMember<Document> m_document; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } | 105 } |
| 106 | 106 |
| 107 #endif | 107 #endif |
| OLD | NEW |