From 02a23642eaae7e2fdd441eddffd2c085fbee3b49 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Mon, 17 Aug 2009 17:24:43 +0100 Subject: Fix first set of linker errors. --- WebCore/platform/android/TemporaryLinkStubs.cpp | 10 ----- WebCore/plugins/PluginView.cpp | 4 +- WebCore/plugins/android/PluginViewAndroid.cpp | 49 ------------------------- 3 files changed, 2 insertions(+), 61 deletions(-) (limited to 'WebCore') diff --git a/WebCore/platform/android/TemporaryLinkStubs.cpp b/WebCore/platform/android/TemporaryLinkStubs.cpp index b68a74c..f9ab682 100644 --- a/WebCore/platform/android/TemporaryLinkStubs.cpp +++ b/WebCore/platform/android/TemporaryLinkStubs.cpp @@ -424,11 +424,6 @@ Vector supportedKeySizes() return Vector(); } -String signedPublicKeyAndChallengeString(unsigned int, String const&, WebCore::KURL const&) -{ - return String(); -} - } // namespace WebCore namespace WebCore { @@ -483,11 +478,6 @@ void prefetchDNS(const String&) notImplemented(); } -void getSupportedKeySizes(Vector&) -{ - notImplemented(); -} - PassRefPtr Icon::createIconForFile(const String&) { notImplemented(); diff --git a/WebCore/plugins/PluginView.cpp b/WebCore/plugins/PluginView.cpp index 8440239..c6b0cae 100644 --- a/WebCore/plugins/PluginView.cpp +++ b/WebCore/plugins/PluginView.cpp @@ -1217,12 +1217,12 @@ static const char* MozillaUserAgent = "Mozilla/5.0 (" const char* PluginView::userAgent() { +#if !PLATFORM(ANDROID) if (m_plugin->quirks().contains(PluginQuirkWantsMozillaUserAgent)) return MozillaUserAgent; - +#endif if (m_userAgent.isNull()) m_userAgent = m_parentFrame->loader()->userAgent(m_url).utf8(); - return m_userAgent.data(); } diff --git a/WebCore/plugins/android/PluginViewAndroid.cpp b/WebCore/plugins/android/PluginViewAndroid.cpp index 022fa35..bb0212b 100644 --- a/WebCore/plugins/android/PluginViewAndroid.cpp +++ b/WebCore/plugins/android/PluginViewAndroid.cpp @@ -398,55 +398,6 @@ void PluginView::setNPWindowRect(const IntRect& rect) m_window->setWindow(&m_npWindow, m_isTransparent); } -void PluginView::stop() -{ - if (!m_isStarted) - return; - - HashSet > streams = m_streams; - HashSet >::iterator end = streams.end(); - for (HashSet >::iterator it = streams.begin(); it != end; ++it) { - (*it)->stop(); - disconnectStream((*it).get()); - } - - ASSERT(m_streams.isEmpty()); - - m_isStarted = false; -#if USE(JSC) - JSC::JSLock::DropAllLocks dropAllLocks(false); -#endif - - PluginMainThreadScheduler::scheduler().unregisterPlugin(m_instance); - - // Destroy the plugin - NPSavedData* savedData = 0; - setCallingPlugin(true); - NPError npErr = m_plugin->pluginFuncs()->destroy(m_instance, &savedData); - setCallingPlugin(false); - LOG_NPERROR(npErr); - - if (savedData) { - if (savedData->buf) - NPN_MemFree(savedData->buf); - NPN_MemFree(savedData); - } - - m_instance->pdata = 0; -} - -const char* PluginView::userAgentStatic() -{ - return 0; -} - -const char* PluginView::userAgent() -{ - if (m_userAgent.isNull()) - m_userAgent = m_parentFrame->loader()->userAgent(m_url).utf8(); - return m_userAgent.data(); -} - NPError PluginView::getValue(NPNVariable variable, void* value) { switch (variable) { -- cgit v1.1