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

Unified Diff: webkit/support/webkit_support.cc

Issue 19381007: Remove unused includes of plugin_list.h. Also remove unused ContentClient and webkit_support method… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | « webkit/support/webkit_support.h ('k') | webkit/support/webkit_support.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
===================================================================
--- webkit/support/webkit_support.cc (revision 211642)
+++ webkit/support/webkit_support.cc (working copy)
@@ -55,15 +55,12 @@
#include "webkit/glue/webkit_glue.h"
#include "webkit/glue/webkitplatformsupport_impl.h"
#include "webkit/glue/weburlrequest_extradata_impl.h"
-#include "webkit/plugins/npapi/plugin_list.h"
-#include "webkit/plugins/npapi/webplugin_impl.h"
#include "webkit/plugins/npapi/webplugin_page_delegate.h"
#include "webkit/plugins/webplugininfo.h"
#include "webkit/renderer/appcache/web_application_cache_host_impl.h"
#include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
#include "webkit/support/platform_support.h"
#include "webkit/support/test_webkit_platform_support.h"
-#include "webkit/support/test_webplugin_page_delegate.h"
#include "webkit/support/web_layer_tree_view_impl_for_testing.h"
#if defined(OS_ANDROID)
@@ -183,21 +180,6 @@
#endif
};
-class WebPluginImplWithPageDelegate
- : public webkit_support::TestWebPluginPageDelegate,
- public base::SupportsWeakPtr<WebPluginImplWithPageDelegate>,
- public webkit::npapi::WebPluginImpl {
- public:
- WebPluginImplWithPageDelegate(WebFrame* frame,
- const WebPluginParams& params,
- const base::FilePath& path)
- : webkit_support::TestWebPluginPageDelegate(),
- webkit::npapi::WebPluginImpl(frame, params, path, AsWeakPtr()) {}
- virtual ~WebPluginImplWithPageDelegate() {}
- private:
- DISALLOW_COPY_AND_ASSIGN(WebPluginImplWithPageDelegate);
-};
-
base::FilePath GetWebKitRootDirFilePath() {
base::FilePath basePath;
PathService::Get(base::DIR_SOURCE_ROOT, &basePath);
@@ -304,23 +286,6 @@
return test_environment->webkit_platform_support();
}
-WebPlugin* CreateWebPlugin(WebFrame* frame,
- const WebPluginParams& params) {
- const bool kAllowWildcard = true;
- std::vector<webkit::WebPluginInfo> plugins;
- std::vector<std::string> mime_types;
- webkit::npapi::PluginList::Singleton()->GetPluginInfoArray(
- params.url, params.mimeType.utf8(), kAllowWildcard,
- NULL, &plugins, &mime_types);
- if (plugins.empty())
- return NULL;
-
- WebPluginParams new_params = params;
- new_params.mimeType = WebString::fromUTF8(mime_types.front());
- return new WebPluginImplWithPageDelegate(
- frame, new_params, plugins.front().path);
-}
-
WebKit::WebString GetWebKitRootDir() {
base::FilePath path = GetWebKitRootDirFilePath();
std::string path_ascii = path.MaybeAsASCII();
« no previous file with comments | « webkit/support/webkit_support.h ('k') | webkit/support/webkit_support.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698