summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/DocumentParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/DocumentParser.h')
-rw-r--r--Source/WebCore/dom/DocumentParser.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/WebCore/dom/DocumentParser.h b/Source/WebCore/dom/DocumentParser.h
index 7b2f0178e..cac337d72 100644
--- a/Source/WebCore/dom/DocumentParser.h
+++ b/Source/WebCore/dom/DocumentParser.h
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2000 Peter Kelly (pmk@post.com)
- * Copyright (C) 2005, 2006 Apple Computer, Inc.
+ * Copyright (C) 2005, 2006 Apple Inc.
* Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
* Copyright (C) 2010 Google, Inc.
*
@@ -21,8 +21,7 @@
*
*/
-#ifndef DocumentParser_h
-#define DocumentParser_h
+#pragma once
#include <wtf/Forward.h>
#include <wtf/RefCounted.h>
@@ -44,16 +43,16 @@ public:
virtual bool hasInsertionPoint() { return true; }
// insert is used by document.write.
- virtual void insert(const SegmentedString&) = 0;
+ virtual void insert(SegmentedString&&) = 0;
// appendBytes and flush are used by DocumentWriter (the loader).
virtual void appendBytes(DocumentWriter&, const char* bytes, size_t length) = 0;
virtual void flush(DocumentWriter&) = 0;
// FIXME: append() should be private, but DocumentWriter::replaceDocument uses it for now.
- // FIXME: This really should take a PassOwnPtr to signify that it expects to take
- // ownership of the buffer. The parser expects the PassRefPtr to hold the only ref of the StringImpl.
- virtual void append(PassRefPtr<StringImpl>) = 0;
+ // FIXME: This really should take a std::unique_ptr to signify that it expects to take
+ // ownership of the buffer. The parser expects the RefPtr to hold the only ref of the StringImpl.
+ virtual void append(RefPtr<StringImpl>&&) = 0;
virtual void finish() = 0;
@@ -116,5 +115,3 @@ private:
};
} // namespace WebCore
-
-#endif // DocumentParser_h