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

Side by Side Diff: Source/core/loader/DocumentWriter.h

Issue 1145773003: Remove the Document.charset setter (making it readonly) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix webexposed tests Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/DocumentWriter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/DocumentWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698