Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/Source/core/xml/DOMParser.h

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public 5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details. 12 * Lesser General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Lesser General Public 14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software 15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 * MA 02110-1301 USA 17 * MA 02110-1301 USA
18 */ 18 */
19 19
20 #ifndef DOMParser_h 20 #ifndef DOMParser_h
21 #define DOMParser_h 21 #define DOMParser_h
22 22
23 #include "bindings/core/v8/ScriptWrappable.h" 23 #include "platform/bindings/ScriptWrappable.h"
24 #include "platform/heap/Handle.h" 24 #include "platform/heap/Handle.h"
25 #include "platform/wtf/Forward.h" 25 #include "platform/wtf/Forward.h"
26 26
27 namespace blink { 27 namespace blink {
28 28
29 class Document; 29 class Document;
30 30
31 class DOMParser final : public GarbageCollected<DOMParser>, 31 class DOMParser final : public GarbageCollected<DOMParser>,
32 public ScriptWrappable { 32 public ScriptWrappable {
33 DEFINE_WRAPPERTYPEINFO(); 33 DEFINE_WRAPPERTYPEINFO();
34 34
35 public: 35 public:
36 static DOMParser* Create(Document& document) { 36 static DOMParser* Create(Document& document) {
37 return new DOMParser(document); 37 return new DOMParser(document);
38 } 38 }
39 39
40 Document* parseFromString(const String&, const String& type); 40 Document* parseFromString(const String&, const String& type);
41 41
42 DECLARE_TRACE(); 42 DECLARE_TRACE();
43 43
44 private: 44 private:
45 explicit DOMParser(Document&); 45 explicit DOMParser(Document&);
46 46
47 WeakMember<Document> context_document_; 47 WeakMember<Document> context_document_;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // DOMParser_h 52 #endif // DOMParser_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkletGlobalScope.h ('k') | third_party/WebKit/Source/core/xml/DocumentXSLT.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698