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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 String m_charset; | 80 String m_charset; |
81 Resource::Type m_resourceType; | 81 Resource::Type m_resourceType; |
82 bool m_isCORSEnabled; | 82 bool m_isCORSEnabled; |
83 StoredCredentials m_allowCredentials; | 83 StoredCredentials m_allowCredentials; |
84 double m_discoveryTime; | 84 double m_discoveryTime; |
85 FetchRequest::DeferOption m_defer; | 85 FetchRequest::DeferOption m_defer; |
86 }; | 86 }; |
87 | 87 |
88 typedef Vector<OwnPtr<PreloadRequest> > PreloadRequestStream; | 88 typedef Vector<OwnPtr<PreloadRequest> > PreloadRequestStream; |
89 | 89 |
90 class HTMLResourcePreloader FINAL : public NoBaseWillBeGarbageCollected<HTMLReso
urcePreloader> { | 90 class HTMLResourcePreloader final : public NoBaseWillBeGarbageCollected<HTMLReso
urcePreloader> { |
91 WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); WTF_MAKE_FAST_ALLOCATED_WILL_BE
_REMOVED; | 91 WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); WTF_MAKE_FAST_ALLOCATED_WILL_BE
_REMOVED; |
92 public: | 92 public: |
93 static PassOwnPtrWillBeRawPtr<HTMLResourcePreloader> create(Document&); | 93 static PassOwnPtrWillBeRawPtr<HTMLResourcePreloader> create(Document&); |
94 void trace(Visitor*); | 94 void trace(Visitor*); |
95 | 95 |
96 void takeAndPreload(PreloadRequestStream&); | 96 void takeAndPreload(PreloadRequestStream&); |
97 void preload(PassOwnPtr<PreloadRequest>); | 97 void preload(PassOwnPtr<PreloadRequest>); |
98 | 98 |
99 private: | 99 private: |
100 explicit HTMLResourcePreloader(Document&); | 100 explicit HTMLResourcePreloader(Document&); |
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 |