OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010. Adam Barth. All rights reserved. | 2 * Copyright (C) 2010. Adam Barth. 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 14 matching lines...) Expand all Loading... |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #ifndef DocumentWriter_h | 29 #ifndef DocumentWriter_h |
30 #define DocumentWriter_h | 30 #define DocumentWriter_h |
31 | 31 |
32 #include "core/html/parser/ParserSynchronizationPolicy.h" | 32 #include "core/html/parser/ParserSynchronizationPolicy.h" |
33 #include "core/loader/TextResourceDecoderBuilder.h" | 33 #include "core/loader/TextResourceDecoderBuilder.h" |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "wtf/RefCounted.h" | 35 #include "wtf/Forward.h" |
36 #include "wtf/text/WTFString.h" | |
37 | 36 |
38 namespace blink { | 37 namespace blink { |
39 | 38 |
40 class Document; | 39 class Document; |
41 class DocumentParser; | 40 class DocumentParser; |
42 | 41 |
43 class DocumentWriter final : public GarbageCollectedFinalized<DocumentWriter> { | 42 class DocumentWriter final : public GarbageCollectedFinalized<DocumentWriter> { |
44 WTF_MAKE_NONCOPYABLE(DocumentWriter); | 43 WTF_MAKE_NONCOPYABLE(DocumentWriter); |
45 public: | 44 public: |
46 static DocumentWriter* create(Document*, ParserSynchronizationPolicy, const
AtomicString& mimeType, const AtomicString& encoding); | 45 static DocumentWriter* create(Document*, ParserSynchronizationPolicy, const
AtomicString& mimeType, const AtomicString& encoding); |
(...skipping 18 matching lines...) Expand all Loading... |
65 | 64 |
66 Member<Document> m_document; | 65 Member<Document> m_document; |
67 TextResourceDecoderBuilder m_decoderBuilder; | 66 TextResourceDecoderBuilder m_decoderBuilder; |
68 | 67 |
69 Member<DocumentParser> m_parser; | 68 Member<DocumentParser> m_parser; |
70 }; | 69 }; |
71 | 70 |
72 } // namespace blink | 71 } // namespace blink |
73 | 72 |
74 #endif // DocumentWriter_h | 73 #endif // DocumentWriter_h |
OLD | NEW |