diff options
author | Steve Block <steveblock@google.com> | 2010-08-27 11:02:25 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-09-02 17:17:20 +0100 |
commit | e8b154fd68f9b33be40a3590e58347f353835f5c (patch) | |
tree | 0733ce26384183245aaa5656af26c653636fe6c1 /WebCore/html/HTMLParserScheduler.h | |
parent | da56157816334089526a7a115a85fd85a6e9a1dc (diff) | |
download | external_webkit-e8b154fd68f9b33be40a3590e58347f353835f5c.zip external_webkit-e8b154fd68f9b33be40a3590e58347f353835f5c.tar.gz external_webkit-e8b154fd68f9b33be40a3590e58347f353835f5c.tar.bz2 |
Merge WebKit at r66079 : Initial merge by git
Change-Id: Ie2e1440fb9d487d24e52c247342c076fecaecac7
Diffstat (limited to 'WebCore/html/HTMLParserScheduler.h')
-rw-r--r-- | WebCore/html/HTMLParserScheduler.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/WebCore/html/HTMLParserScheduler.h b/WebCore/html/HTMLParserScheduler.h index 1ea2c65..5be33b0 100644 --- a/WebCore/html/HTMLParserScheduler.h +++ b/WebCore/html/HTMLParserScheduler.h @@ -29,6 +29,7 @@ #include "Timer.h" #include <wtf/CurrentTime.h> #include <wtf/Noncopyable.h> +#include <wtf/PassOwnPtr.h> namespace WebCore { @@ -36,7 +37,10 @@ class HTMLDocumentParser; class HTMLParserScheduler : public Noncopyable { public: - HTMLParserScheduler(HTMLDocumentParser*); + static PassOwnPtr<HTMLParserScheduler> create(HTMLDocumentParser* parser) + { + return adoptPtr(new HTMLParserScheduler(parser)); + } ~HTMLParserScheduler(); struct PumpSession { @@ -70,6 +74,8 @@ public: bool isScheduledForResume() const { return m_continueNextChunkTimer.isActive(); } private: + HTMLParserScheduler(HTMLDocumentParser*); + void continueNextChunkTimerFired(Timer<HTMLParserScheduler>*); HTMLDocumentParser* m_parser; |