diff options
Diffstat (limited to 'Source/WebCore/loader/archive/ArchiveFactory.h')
-rw-r--r-- | Source/WebCore/loader/archive/ArchiveFactory.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/WebCore/loader/archive/ArchiveFactory.h b/Source/WebCore/loader/archive/ArchiveFactory.h index 54b64dd77..f37b3c51d 100644 --- a/Source/WebCore/loader/archive/ArchiveFactory.h +++ b/Source/WebCore/loader/archive/ArchiveFactory.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,13 +26,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef ArchiveFactory_h -#define ArchiveFactory_h +#pragma once #include "Archive.h" #include <wtf/Forward.h> -#include <wtf/PassRefPtr.h> namespace WebCore { @@ -41,10 +39,8 @@ class SharedBuffer; class ArchiveFactory { public: static bool isArchiveMimeType(const String&); - static PassRefPtr<Archive> create(const URL&, SharedBuffer* data, const String& mimeType); + static RefPtr<Archive> create(const URL&, SharedBuffer* data, const String& mimeType); static void registerKnownArchiveMIMETypes(); }; -} - -#endif // ArchiveFactory_h +} // namespace WebCore |