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

Side by Side Diff: webkit/port/platform/PluginStubsMac.cpp

Issue 6588: changes to get mac layout tests moving forward. Turn off objc GC and remove a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« build/common.xcconfig ('K') | « build/common.xcconfig ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "PluginData.h" 7 #include "PluginData.h"
8 8
9 // TODO(port):Temporarily stub out Plugin code for Mac port of Chromium so we 9 // TODO(port):Temporarily stub out Plugin code for Mac port of Chromium so we
10 // can get things to compile. 10 // can get things to compile.
11 11
12 namespace WebCore { 12 namespace WebCore {
13 13
14 // Copied from PluginInfo.h, since including it clashes with PluginData.h. 14 // Copied from PluginInfo.h, since including it clashes with PluginData.h.
15 // The collision isn't worth fixing since the workaround here is only temporary. 15 // The collision isn't worth fixing since the workaround here is only temporary.
16 struct PluginInfo; 16 struct PluginInfo;
17 class PluginInfoStore { 17 class PluginInfoStore {
18 public: 18 public:
19 PluginInfo *createPluginInfoForPluginAtIndex(unsigned); 19 PluginInfo *createPluginInfoForPluginAtIndex(unsigned);
20 unsigned pluginCount() const; 20 unsigned pluginCount() const;
21 static String pluginNameForMIMEType(const String& mimeType); 21 static String pluginNameForMIMEType(const String& mimeType);
22 static bool supportsMIMEType(const String& mimeType); 22 static bool supportsMIMEType(const String& mimeType);
23 }; 23 };
24 24
25 PluginInfo * PluginInfoStore::createPluginInfoForPluginAtIndex(unsigned) { 25 PluginInfo * PluginInfoStore::createPluginInfoForPluginAtIndex(unsigned) {
26 ASSERT_NOT_REACHED(); 26 // TODO(pinkerton): don't assert here because that crashes layout tests.
27 return NULL; 27 return NULL;
28 } 28 }
29 29
30 unsigned PluginInfoStore::pluginCount() const { 30 unsigned PluginInfoStore::pluginCount() const {
31 return 0; 31 return 0;
32 } 32 }
33 33
34 bool PluginInfoStore::supportsMIMEType(const WebCore::String& mimeType) { 34 bool PluginInfoStore::supportsMIMEType(const WebCore::String& mimeType) {
35 return false; 35 return false;
36 } 36 }
37 37
38 PluginData::PluginData(const Page* page) 38 PluginData::PluginData(const Page* page)
39 : m_page(page) { 39 : m_page(page) {
40 ASSERT_NOT_REACHED(); 40 // TODO(pinkerton): don't assert here because that crashes layout tests.
41 } 41 }
42 42
43 PluginData::~PluginData() { 43 PluginData::~PluginData() {
44 } 44 }
45 45
46 bool PluginData::supportsMimeType(const String& mimeType) const { 46 bool PluginData::supportsMimeType(const String& mimeType) const {
47 return false; 47 return false;
48 } 48 }
49 49
50 String PluginData::pluginNameForMimeType(const String& mimeType) const { 50 String PluginData::pluginNameForMimeType(const String& mimeType) const {
51 ASSERT_NOT_REACHED(); 51 // TODO(pinkerton): don't assert here because that crashes layout tests.
52 return String(); 52 return String();
53 } 53 }
54 54
55 // static 55 // static
56 void PluginData::refresh() { 56 void PluginData::refresh() {
57 } 57 }
58 58
59 void refreshPlugins(bool reloadOpenPages) { 59 void refreshPlugins(bool reloadOpenPages) {
60 } 60 }
61 61
62 } // namespace WebCore 62 } // namespace WebCore
OLDNEW
« build/common.xcconfig ('K') | « build/common.xcconfig ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698