diff options
Diffstat (limited to 'Source/WebCore/loader/archive/ArchiveResource.h')
-rw-r--r-- | Source/WebCore/loader/archive/ArchiveResource.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/WebCore/loader/archive/ArchiveResource.h b/Source/WebCore/loader/archive/ArchiveResource.h index 9b4b01b9c..209e9717a 100644 --- a/Source/WebCore/loader/archive/ArchiveResource.h +++ b/Source/WebCore/loader/archive/ArchiveResource.h @@ -10,7 +10,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of + * 3. Neither the name of Apple Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -26,8 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef ArchiveResource_h -#define ArchiveResource_h +#pragma once #include "SubstituteResource.h" @@ -35,8 +34,8 @@ namespace WebCore { class ArchiveResource : public SubstituteResource { public: - static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const URL&, const ResourceResponse&); - static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const URL&, + static RefPtr<ArchiveResource> create(RefPtr<SharedBuffer>&&, const URL&, const ResourceResponse&); + WEBCORE_EXPORT static RefPtr<ArchiveResource> create(RefPtr<SharedBuffer>&&, const URL&, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse& = ResourceResponse()); @@ -48,7 +47,7 @@ public: bool shouldIgnoreWhenUnarchiving() const { return m_shouldIgnoreWhenUnarchiving; } private: - ArchiveResource(PassRefPtr<SharedBuffer>, const URL&, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse&); + ArchiveResource(Ref<SharedBuffer>&&, const URL&, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse&); String m_mimeType; String m_textEncoding; @@ -57,6 +56,4 @@ private: bool m_shouldIgnoreWhenUnarchiving; }; -} - -#endif // ArchiveResource_h +} // namespace WebCore |