summaryrefslogtreecommitdiffstats
path: root/webkit/port/platform/PluginStubsMac.cpp
blob: a5fa8939455534db328675a6b969c4ab88bb8574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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