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

Unified Diff: Source/core/loader/SinkDocument.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/loader/SinkDocument.h
diff --git a/Source/core/loader/SinkDocument.h b/Source/core/loader/SinkDocument.h
index 52792c8176c728279325bf118fc199f289290a23..26552877a5304ed3102c5037f0ee511c34799896 100644
--- a/Source/core/loader/SinkDocument.h
+++ b/Source/core/loader/SinkDocument.h
@@ -32,13 +32,13 @@ namespace WebCore {
class SinkDocument FINAL : public HTMLDocument {
public:
- static PassRefPtr<SinkDocument> create(Frame* frame, const KURL& url)
+ static PassRefPtr<SinkDocument> create(const DocumentInitializer& initializer = DocumentInitializer())
{
- return adoptRef(new SinkDocument(frame, url));
+ return adoptRef(new SinkDocument(initializer));
}
private:
- SinkDocument(Frame*, const KURL&);
+ SinkDocument(const DocumentInitializer&);
virtual PassRefPtr<DocumentParser> createParser();
};

Powered by Google App Engine
This is Rietveld 408576698