diff options
Diffstat (limited to 'WebKit/win/WebUserContentURLPattern.cpp')
-rw-r--r-- | WebKit/win/WebUserContentURLPattern.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/WebKit/win/WebUserContentURLPattern.cpp b/WebKit/win/WebUserContentURLPattern.cpp index 5312fca..1c8c569 100644 --- a/WebKit/win/WebUserContentURLPattern.cpp +++ b/WebKit/win/WebUserContentURLPattern.cpp @@ -23,9 +23,11 @@ */ #include "config.h" -#include "WebKitDLL.h" #include "WebUserContentURLPattern.h" +#include "MarshallingHelpers.h" +#include "WebKitDLL.h" + #include <WebCore/BString.h> #include <WebCore/KURL.h> @@ -118,3 +120,11 @@ HRESULT WebUserContentURLPattern::matchesSubdomains(BOOL* matches) *matches = m_pattern.matchSubdomains(); return S_OK; } + +HRESULT WebUserContentURLPattern::matchesURL(BSTR url, BOOL* matches) +{ + if (!matches) + return E_POINTER; + *matches = m_pattern.matches(MarshallingHelpers::BSTRToKURL(url)); + return S_OK; +} |