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

Unified Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 1313763002: Blink Plugins: Remove Shadow DOM Plugin Placeholder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/web/FrameLoaderClientImpl.cpp
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
index 56b861c1e761e5621da540a81f47a05ad8a60c72..a16b30753f00e5a14d84e69c8a7611930797a764 100644
--- a/Source/web/FrameLoaderClientImpl.cpp
+++ b/Source/web/FrameLoaderClientImpl.cpp
@@ -85,10 +85,8 @@
#include "public/web/WebNode.h"
#include "public/web/WebPlugin.h"
#include "public/web/WebPluginParams.h"
-#include "public/web/WebPluginPlaceholder.h"
#include "public/web/WebViewClient.h"
#include "web/DevToolsEmulator.h"
-#include "web/PluginPlaceholderImpl.h"
#include "web/SharedWorkerRepositoryClientImpl.h"
#include "web/WebDataSourceImpl.h"
#include "web/WebDevToolsAgentImpl.h"
@@ -701,32 +699,6 @@ bool FrameLoaderClientImpl::canCreatePluginWithoutRenderer(const String& mimeTyp
return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType);
}
-PassOwnPtrWillBeRawPtr<PluginPlaceholder> FrameLoaderClientImpl::createPluginPlaceholder(
- Document& document,
- const KURL& url,
- const Vector<String>& paramNames,
- const Vector<String>& paramValues,
- const String& mimeType,
- bool loadManually)
-{
- if (!m_webFrame->client())
- return nullptr;
-
- WebPluginParams params;
- params.url = url;
- params.mimeType = mimeType;
- params.attributeNames = paramNames;
- params.attributeValues = paramValues;
- params.loadManually = loadManually;
-
- OwnPtr<WebPluginPlaceholder> webPluginPlaceholder = adoptPtr(
- m_webFrame->client()->createPluginPlaceholder(m_webFrame, params));
- if (!webPluginPlaceholder)
- return nullptr;
-
- return PluginPlaceholderImpl::create(webPluginPlaceholder.release(), document);
-}
-
PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createPlugin(
HTMLPlugInElement* element,
const KURL& url,

Powered by Google App Engine
This is Rietveld 408576698