diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/xml/DOMParser.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/xml/DOMParser.h')
-rw-r--r-- | Source/WebCore/xml/DOMParser.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/Source/WebCore/xml/DOMParser.h b/Source/WebCore/xml/DOMParser.h index 91ed18427..42ceeb9fa 100644 --- a/Source/WebCore/xml/DOMParser.h +++ b/Source/WebCore/xml/DOMParser.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003, 2006 Apple Computer, Inc. + * Copyright (C) 2003, 2006 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -16,28 +16,24 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef DOMParser_h -#define DOMParser_h +#pragma once -#include <wtf/Forward.h> -#include <wtf/RefCounted.h> -#include <wtf/RefPtr.h> +#include "ExceptionOr.h" +#include <wtf/WeakPtr.h> namespace WebCore { -typedef int ExceptionCode; class Document; class DOMParser : public RefCounted<DOMParser> { public: - static PassRefPtr<DOMParser> create() { return adoptRef(new DOMParser); } - - PassRefPtr<Document> parseFromString(const String&, const String& contentType, ExceptionCode&); + static Ref<DOMParser> create(Document& contextDocument); + ExceptionOr<Ref<Document>> parseFromString(const String&, const String& contentType); private: - DOMParser() { } + explicit DOMParser(Document& contextDocument); + + WeakPtr<Document> m_contextDocument; }; } - -#endif // XMLSerializer.h |