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

Unified Diff: Source/core/html/HTMLViewSourceDocument.h

Issue 18808004: Refactoring: Extract DocumentInit for capture Document construction parameter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to ToT Created 7 years, 5 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
Index: Source/core/html/HTMLViewSourceDocument.h
diff --git a/Source/core/html/HTMLViewSourceDocument.h b/Source/core/html/HTMLViewSourceDocument.h
index 9e196c8f1b7d45f9d9361ba658b88373ddcf925d..81d33db83406cdb6fe05aee7ab511d4e46568045 100644
--- a/Source/core/html/HTMLViewSourceDocument.h
+++ b/Source/core/html/HTMLViewSourceDocument.h
@@ -35,15 +35,15 @@ class HTMLToken;
class HTMLViewSourceDocument FINAL : public HTMLDocument {
public:
- static PassRefPtr<HTMLViewSourceDocument> create(Frame* frame, const KURL& url, const String& mimeType)
+ static PassRefPtr<HTMLViewSourceDocument> create(const DocumentInitializer& initializer, const String& mimeType)
{
- return adoptRef(new HTMLViewSourceDocument(frame, url, mimeType));
+ return adoptRef(new HTMLViewSourceDocument(initializer, mimeType));
}
void addSource(const String&, HTMLToken&);
private:
- HTMLViewSourceDocument(Frame*, const KURL&, const String& mimeType);
+ HTMLViewSourceDocument(const DocumentInitializer&, const String& mimeType);
virtual PassRefPtr<DocumentParser> createParser() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698