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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void end(); | 51 void end(); |
52 | 52 |
53 void addData(const char* bytes, size_t length); | 53 void addData(const char* bytes, size_t length); |
54 | 54 |
55 const AtomicString& mimeType() const { return m_decoderBuilder.mimeType(); } | 55 const AtomicString& mimeType() const { return m_decoderBuilder.mimeType(); } |
56 const AtomicString& encoding() const { return m_decoderBuilder.encoding(); } | 56 const AtomicString& encoding() const { return m_decoderBuilder.encoding(); } |
57 | 57 |
58 // Exposed for DocumentLoader::replaceDocumentWhileExecutingJavaScriptURL. | 58 // Exposed for DocumentLoader::replaceDocumentWhileExecutingJavaScriptURL. |
59 void appendReplacingData(const String&); | 59 void appendReplacingData(const String&); |
60 | 60 |
61 void setUserChosenEncoding(const String& charset); | |
62 | |
63 void setDocumentWasLoadedAsPartOfNavigation(); | 61 void setDocumentWasLoadedAsPartOfNavigation(); |
64 | 62 |
65 private: | 63 private: |
66 DocumentWriter(Document*, ParserSynchronizationPolicy, const AtomicString& m
imeType, const AtomicString& encoding); | 64 DocumentWriter(Document*, ParserSynchronizationPolicy, const AtomicString& m
imeType, const AtomicString& encoding); |
67 | 65 |
68 RawPtrWillBeMember<Document> m_document; | 66 RawPtrWillBeMember<Document> m_document; |
69 TextResourceDecoderBuilder m_decoderBuilder; | 67 TextResourceDecoderBuilder m_decoderBuilder; |
70 | 68 |
71 RefPtrWillBeMember<DocumentParser> m_parser; | 69 RefPtrWillBeMember<DocumentParser> m_parser; |
72 }; | 70 }; |
73 | 71 |
74 } // namespace blink | 72 } // namespace blink |
75 | 73 |
76 #endif // DocumentWriter_h | 74 #endif // DocumentWriter_h |
OLD | NEW |