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

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

Issue 18808004: Refactoring: Extract DocumentInit for capture Document construction parameter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed webkit_unit_tests build failure. 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
« no previous file with comments | « Source/core/html/MediaDocument.cpp ('k') | Source/core/html/PluginDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/PluginDocument.h
diff --git a/Source/core/html/PluginDocument.h b/Source/core/html/PluginDocument.h
index bd74d2cdf23bc7fe0836a5149794b179501c122b..78c8355145ea93af96fa5cc9191e6660457ba803 100644
--- a/Source/core/html/PluginDocument.h
+++ b/Source/core/html/PluginDocument.h
@@ -34,9 +34,9 @@ class Widget;
class PluginDocument FINAL : public HTMLDocument {
public:
- static PassRefPtr<PluginDocument> create(Frame* frame, const KURL& url)
+ static PassRefPtr<PluginDocument> create(const DocumentInit& initializer = DocumentInit())
{
- return adoptRef(new PluginDocument(frame, url));
+ return adoptRef(new PluginDocument(initializer));
}
void setPluginNode(Node* pluginNode) { m_pluginNode = pluginNode; }
@@ -51,7 +51,7 @@ public:
bool shouldLoadPluginManually() { return m_shouldLoadPluginManually; }
private:
- PluginDocument(Frame*, const KURL&);
+ PluginDocument(const DocumentInit&);
virtual PassRefPtr<DocumentParser> createParser() OVERRIDE;
« no previous file with comments | « Source/core/html/MediaDocument.cpp ('k') | Source/core/html/PluginDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698