diff options
Diffstat (limited to 'Source/WebCore/plugins')
-rw-r--r-- | Source/WebCore/plugins/PluginData.h | 2 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginDatabase.cpp | 6 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginDatabase.h | 2 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginDebug.cpp | 3 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginPackage.h | 2 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginStream.cpp | 2 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginStream.h | 2 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginView.cpp | 10 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginViewNone.cpp | 1 | ||||
-rw-r--r-- | Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp | 1 | ||||
-rw-r--r-- | Source/WebCore/plugins/gtk/PluginViewGtk.cpp | 1 | ||||
-rw-r--r-- | Source/WebCore/plugins/mac/PluginViewMac.mm | 1 | ||||
-rw-r--r-- | Source/WebCore/plugins/qt/PluginViewQt.cpp | 1 | ||||
-rw-r--r-- | Source/WebCore/plugins/win/PluginViewWin.cpp | 2 |
14 files changed, 16 insertions, 20 deletions
diff --git a/Source/WebCore/plugins/PluginData.h b/Source/WebCore/plugins/PluginData.h index fdcce6126..d1ffc39e3 100644 --- a/Source/WebCore/plugins/PluginData.h +++ b/Source/WebCore/plugins/PluginData.h @@ -22,7 +22,7 @@ #include <wtf/RefCounted.h> #include <wtf/Vector.h> -#include "PlatformString.h" +#include <wtf/text/WTFString.h> namespace WebCore { diff --git a/Source/WebCore/plugins/PluginDatabase.cpp b/Source/WebCore/plugins/PluginDatabase.cpp index e021bad0e..961c45485 100644 --- a/Source/WebCore/plugins/PluginDatabase.cpp +++ b/Source/WebCore/plugins/PluginDatabase.cpp @@ -36,6 +36,10 @@ #include <stdlib.h> #include <wtf/text/CString.h> +#if PLATFORM(BLACKBERRY) +#include <BlackBerryPlatformSettings.h> +#endif + namespace WebCore { typedef HashMap<String, RefPtr<PluginPackage> > PluginPackageByNameMap; @@ -429,7 +433,7 @@ bool PluginDatabase::isPreferredPluginDirectory(const String& path) String preferredPath = homeDirectoryPath(); #if PLATFORM(BLACKBERRY) - preferredPath = BlackBerry::Platform::Client::get()->getApplicationPluginDirectory().c_str(); + preferredPath = BlackBerry::Platform::Settings::instance()->applicationPluginDirectory().c_str(); #elif defined(XP_UNIX) preferredPath.append(String("/.mozilla/plugins")); #elif defined(XP_MACOSX) diff --git a/Source/WebCore/plugins/PluginDatabase.h b/Source/WebCore/plugins/PluginDatabase.h index c412c0966..55980d1de 100644 --- a/Source/WebCore/plugins/PluginDatabase.h +++ b/Source/WebCore/plugins/PluginDatabase.h @@ -28,11 +28,11 @@ #ifndef PluginDatabase_h #define PluginDatabase_h -#include "PlatformString.h" #include "PluginPackage.h" #include <wtf/HashSet.h> #include <wtf/Vector.h> #include <wtf/text/StringHash.h> +#include <wtf/text/WTFString.h> namespace WebCore { class Element; diff --git a/Source/WebCore/plugins/PluginDebug.cpp b/Source/WebCore/plugins/PluginDebug.cpp index 8c3efcb5e..8ab935bfa 100644 --- a/Source/WebCore/plugins/PluginDebug.cpp +++ b/Source/WebCore/plugins/PluginDebug.cpp @@ -26,7 +26,8 @@ #include "config.h" #include "PluginDebug.h" -#include "PlatformString.h" + +#include <wtf/text/WTFString.h> #if !LOG_DISABLED diff --git a/Source/WebCore/plugins/PluginPackage.h b/Source/WebCore/plugins/PluginPackage.h index 2c3734ad6..01fa565f8 100644 --- a/Source/WebCore/plugins/PluginPackage.h +++ b/Source/WebCore/plugins/PluginPackage.h @@ -28,13 +28,13 @@ #define PluginPackage_h #include "FileSystem.h" -#include "PlatformString.h" #include "PluginQuirkSet.h" #include "Timer.h" #include "npruntime_internal.h" #include <wtf/HashMap.h> #include <wtf/RefCounted.h> #include <wtf/text/StringHash.h> +#include <wtf/text/WTFString.h> namespace WebCore { typedef HashMap<String, String> MIMEToDescriptionsMap; diff --git a/Source/WebCore/plugins/PluginStream.cpp b/Source/WebCore/plugins/PluginStream.cpp index 002380f5f..085a318b4 100644 --- a/Source/WebCore/plugins/PluginStream.cpp +++ b/Source/WebCore/plugins/PluginStream.cpp @@ -140,7 +140,7 @@ void PluginStream::startStream() if (m_resourceResponse.isHTTP()) { StringBuilder stringBuilder; - String separator(": "); + String separator = ASCIILiteral(": "); String statusLine = "HTTP " + String::number(m_resourceResponse.httpStatusCode()) + " OK\n"; stringBuilder.append(statusLine); diff --git a/Source/WebCore/plugins/PluginStream.h b/Source/WebCore/plugins/PluginStream.h index 9bc10c8f5..55d1702bf 100644 --- a/Source/WebCore/plugins/PluginStream.h +++ b/Source/WebCore/plugins/PluginStream.h @@ -30,7 +30,6 @@ #include "FileSystem.h" #include "KURL.h" #include "NetscapePlugInStreamLoader.h" -#include "PlatformString.h" #include "PluginQuirkSet.h" #include "ResourceRequest.h" #include "ResourceResponse.h" @@ -42,6 +41,7 @@ #include <wtf/Vector.h> #include <wtf/text/CString.h> #include <wtf/text/StringHash.h> +#include <wtf/text/WTFString.h> namespace WebCore { class Frame; diff --git a/Source/WebCore/plugins/PluginView.cpp b/Source/WebCore/plugins/PluginView.cpp index 0d6857f25..9672e91f6 100644 --- a/Source/WebCore/plugins/PluginView.cpp +++ b/Source/WebCore/plugins/PluginView.cpp @@ -64,6 +64,7 @@ #include "Settings.h" #include "npruntime_impl.h" #include <wtf/ASCIICType.h> +#include <wtf/text/WTFString.h> #if OS(WINDOWS) && ENABLE(NETSCAPE_PLUGIN_API) #include "PluginMessageThrottlerWin.h" @@ -81,7 +82,6 @@ using JSC::ExecState; using JSC::JSLock; using JSC::JSObject; using JSC::JSValue; -using JSC::UString; #endif #if ENABLE(NETSCAPE_PLUGIN_API) @@ -1133,12 +1133,8 @@ static inline HTTPHeaderMap parseRFC822HeaderFields(const Vector<char>& buffer, value = String(colon, eol - colon); String oldValue = headerFields.get(lastKey); - if (!oldValue.isNull()) { - String tmp = oldValue; - tmp += ", "; - tmp += value; - value = tmp; - } + if (!oldValue.isNull()) + value = oldValue + ", " + value; headerFields.set(lastKey, value); } diff --git a/Source/WebCore/plugins/PluginViewNone.cpp b/Source/WebCore/plugins/PluginViewNone.cpp index e3b134a3b..93cc6cfb5 100644 --- a/Source/WebCore/plugins/PluginViewNone.cpp +++ b/Source/WebCore/plugins/PluginViewNone.cpp @@ -29,7 +29,6 @@ #if USE(JSC) #include "BridgeJSC.h" #include <runtime/JSObject.h> -#include <runtime/ScopeChain.h> #endif using namespace WTF; diff --git a/Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp b/Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp index 2cc96d5e2..f5478f08c 100644 --- a/Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp +++ b/Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp @@ -90,7 +90,6 @@ using JSC::ExecState; using JSC::Interpreter; using JSC::JSLock; using JSC::JSObject; -using JSC::UString; using namespace std; using namespace WTF; diff --git a/Source/WebCore/plugins/gtk/PluginViewGtk.cpp b/Source/WebCore/plugins/gtk/PluginViewGtk.cpp index 6844eecc5..62f9f8d84 100644 --- a/Source/WebCore/plugins/gtk/PluginViewGtk.cpp +++ b/Source/WebCore/plugins/gtk/PluginViewGtk.cpp @@ -83,7 +83,6 @@ using JSC::ExecState; using JSC::Interpreter; using JSC::JSLock; using JSC::JSObject; -using JSC::UString; using std::min; diff --git a/Source/WebCore/plugins/mac/PluginViewMac.mm b/Source/WebCore/plugins/mac/PluginViewMac.mm index 785a74df0..42ba6a645 100644 --- a/Source/WebCore/plugins/mac/PluginViewMac.mm +++ b/Source/WebCore/plugins/mac/PluginViewMac.mm @@ -70,7 +70,6 @@ using JSC::Interpreter; using JSC::JSLock; using JSC::JSObject; using JSC::JSValue; -using JSC::UString; #if PLATFORM(QT) #include <QWidget> diff --git a/Source/WebCore/plugins/qt/PluginViewQt.cpp b/Source/WebCore/plugins/qt/PluginViewQt.cpp index 04d710ea2..9bc02275a 100644 --- a/Source/WebCore/plugins/qt/PluginViewQt.cpp +++ b/Source/WebCore/plugins/qt/PluginViewQt.cpp @@ -90,7 +90,6 @@ using JSC::Interpreter; #endif using JSC::JSLock; using JSC::JSObject; -using JSC::UString; using std::min; diff --git a/Source/WebCore/plugins/win/PluginViewWin.cpp b/Source/WebCore/plugins/win/PluginViewWin.cpp index 142fa8305..05ff30ba4 100644 --- a/Source/WebCore/plugins/win/PluginViewWin.cpp +++ b/Source/WebCore/plugins/win/PluginViewWin.cpp @@ -69,6 +69,7 @@ #include <runtime/JSLock.h> #include <runtime/JSValue.h> #include <wtf/ASCIICType.h> +#include <wtf/text/WTFString.h> #if !PLATFORM(WX) #include "BitmapInfo.h" @@ -127,7 +128,6 @@ static inline HWND windowHandleForPageClient(PlatformPageClient client) using JSC::ExecState; using JSC::JSLock; using JSC::JSObject; -using JSC::UString; using std::min; |