summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-07 20:47:37 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-07 20:47:37 +0000
commitf5f185314fe42b243b4738972e14d0d0c6b00981 (patch)
treee46c7d7d7dd7e801cb9e6d4fc68111d2c7bd9a5c /webkit/port
parent38b62835d5e389f17b1071377eabd531085c5a1a (diff)
downloadchromium_src-f5f185314fe42b243b4738972e14d0d0c6b00981.zip
chromium_src-f5f185314fe42b243b4738972e14d0d0c6b00981.tar.gz
chromium_src-f5f185314fe42b243b4738972e14d0d0c6b00981.tar.bz2
Stub out plugin routines so we can link Mac port.
Review URL: http://codereview.chromium.org/6555 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2962 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/platform/PluginStubsMac.cpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/webkit/port/platform/PluginStubsMac.cpp b/webkit/port/platform/PluginStubsMac.cpp
new file mode 100644
index 0000000..a5fa893
--- /dev/null
+++ b/webkit/port/platform/PluginStubsMac.cpp
@@ -0,0 +1,62 @@
+// Copyright (c) 2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+
+#include "PluginData.h"
+
+// TODO(port):Temporarily stub out Plugin code for Mac port of Chromium so we
+// can get things to compile.
+
+namespace WebCore {
+
+// Copied from PluginInfo.h, since including it clashes with PluginData.h.
+// The collision isn't worth fixing since the workaround here is only temporary.
+struct PluginInfo;
+class PluginInfoStore {
+ public:
+ PluginInfo *createPluginInfoForPluginAtIndex(unsigned);
+ unsigned pluginCount() const;
+ static String pluginNameForMIMEType(const String& mimeType);
+ static bool supportsMIMEType(const String& mimeType);
+};
+
+PluginInfo * PluginInfoStore::createPluginInfoForPluginAtIndex(unsigned) {
+ ASSERT_NOT_REACHED();
+ return NULL;
+}
+
+unsigned PluginInfoStore::pluginCount() const {
+ return 0;
+}
+
+bool PluginInfoStore::supportsMIMEType(const WebCore::String& mimeType) {
+ return false;
+}
+
+PluginData::PluginData(const Page* page)
+ : m_page(page) {
+ ASSERT_NOT_REACHED();
+}
+
+PluginData::~PluginData() {
+}
+
+bool PluginData::supportsMimeType(const String& mimeType) const {
+ return false;
+}
+
+String PluginData::pluginNameForMimeType(const String& mimeType) const {
+ ASSERT_NOT_REACHED();
+ return String();
+}
+
+// static
+void PluginData::refresh() {
+}
+
+void refreshPlugins(bool reloadOpenPages) {
+}
+
+} // namespace WebCore