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

Unified Diff: Source/core/html/parser/HTMLViewSourceParser.h

Issue 277633002: Convert DocumentParser code to Use more reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make TextDocument use reference as well Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLViewSourceParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLViewSourceParser.h
diff --git a/Source/core/html/parser/HTMLViewSourceParser.h b/Source/core/html/parser/HTMLViewSourceParser.h
index d1f0bec23c81dc3c96fc789a50e65eab502545f7..18b9b9458d942cd71fca5bbc065076b9d4fa1d1f 100644
--- a/Source/core/html/parser/HTMLViewSourceParser.h
+++ b/Source/core/html/parser/HTMLViewSourceParser.h
@@ -36,14 +36,14 @@ namespace WebCore {
class HTMLViewSourceParser FINAL : public DecodedDataDocumentParser {
public:
- static PassRefPtr<HTMLViewSourceParser> create(HTMLViewSourceDocument* document, const String& mimeType)
+ static PassRefPtr<HTMLViewSourceParser> create(HTMLViewSourceDocument& document, const String& mimeType)
{
return adoptRef(new HTMLViewSourceParser(document, mimeType));
}
virtual ~HTMLViewSourceParser() { }
private:
- HTMLViewSourceParser(HTMLViewSourceDocument*, const String& mimeType);
+ HTMLViewSourceParser(HTMLViewSourceDocument&, const String& mimeType);
// DocumentParser
virtual void insert(const SegmentedString&) OVERRIDE { ASSERT_NOT_REACHED(); }
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLViewSourceParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698