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

Side by Side Diff: Source/core/dom/DocumentParser.h

Issue 100563004: Redirect HTML resource bytes directly to parser thread (Blink side CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_decodermove
Patch Set: Missing include Created 7 years 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) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2005, 2006 Apple Computer, Inc. 3 * Copyright (C) 2005, 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
5 * Copyright (C) 2010 Google, Inc. 5 * Copyright (C) 2010 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // insert is used by document.write. 48 // insert is used by document.write.
49 virtual void insert(const SegmentedString&) = 0; 49 virtual void insert(const SegmentedString&) = 0;
50 50
51 // The below functions are used by DocumentWriter (the loader). 51 // The below functions are used by DocumentWriter (the loader).
52 virtual void appendBytes(const char* bytes, size_t length) = 0; 52 virtual void appendBytes(const char* bytes, size_t length) = 0;
53 virtual void flush() = 0; 53 virtual void flush() = 0;
54 virtual bool needsDecoder() const { return false; } 54 virtual bool needsDecoder() const { return false; }
55 virtual void setDecoder(PassOwnPtr<TextResourceDecoder>); 55 virtual void setDecoder(PassOwnPtr<TextResourceDecoder>);
56 virtual TextResourceDecoder* decoder(); 56 virtual TextResourceDecoder* decoder();
57 virtual void setHasAppendedData() { } 57 virtual void setHasAppendedData() { }
58 virtual void parserResourceMessageFilterAdded() { }
abarth-chromium 2013/12/18 18:28:49 Blink doesn't know about "message filters". You'r
58 59
59 // pinToMainThread also makes append() not yield before completion of that c hunk. 60 // pinToMainThread also makes append() not yield before completion of that c hunk.
60 virtual void pinToMainThread() { } 61 virtual void pinToMainThread() { }
61 62
62 // FIXME: append() should be private, but DocumentWriter::replaceDocument us es it for now. 63 // FIXME: append() should be private, but DocumentWriter::replaceDocument us es it for now.
63 // FIXME: This really should take a PassOwnPtr to signify that it expects to take 64 // FIXME: This really should take a PassOwnPtr to signify that it expects to take
64 // ownership of the buffer. The parser expects the PassRefPtr to hold the on ly ref of the StringImpl. 65 // ownership of the buffer. The parser expects the PassRefPtr to hold the on ly ref of the StringImpl.
65 virtual void append(PassRefPtr<StringImpl>) = 0; 66 virtual void append(PassRefPtr<StringImpl>) = 0;
66 67
67 virtual void finish() = 0; 68 virtual void finish() = 0;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 bool m_documentWasLoadedAsPartOfNavigation; 121 bool m_documentWasLoadedAsPartOfNavigation;
121 122
122 // Every DocumentParser needs a pointer back to the document. 123 // Every DocumentParser needs a pointer back to the document.
123 // m_document will be 0 after the parser is stopped. 124 // m_document will be 0 after the parser is stopped.
124 Document* m_document; 125 Document* m_document;
125 }; 126 };
126 127
127 } // namespace WebCore 128 } // namespace WebCore
128 129
129 #endif // DocumentParser_h 130 #endif // DocumentParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698