• aroben@apple.com's avatar
    Expose UserContentURLPattern as WebKit SPI · cc912cec
    aroben@apple.com authored
    Fixes <http://webkit.org/b/37354>.
    
    Reviewed by Tim Hatcher.
    
    WebCore:
    
    * WebCore.base.exp: Export UserContentURLPattern::parse, and sorted
    the file.
    
    * WebCore.xcodeproj/project.pbxproj: Marked UserContentURLPattern.h as
    "Private".
    
    * page/UserContentURLPattern.h:
    (WebCore::UserContentURLPattern::UserContentURLPattern): Added a
    default constructor.
    (WebCore::UserContentURLPattern::isValid): Added this getter.
    
    WebKit:
    
    * WebKit.xcodeproj/project.pbxproj: Add WebUserContentURLPattern.
    
    WebKit/mac:
    
    * Misc/WebUserContentURLPattern.h: Added.
    
    * Misc/WebUserContentURLPattern.mm: Added.
    (-[WebUserContentURLPattern initWithPatternString:]): Initialize
    _private and then parse the passed-in string into a
    UserContentURLPattern.
    (-[WebUserContentURLPattern dealloc]): Release _private.
    
    (-[WebUserContentURLPattern isValid]):
    (-[WebUserContentURLPattern scheme]):
    (-[WebUserContentURLPattern host]):
    (-[WebUserContentURLPattern matchesSubdomains]):
    Call through to UserContentURLPattern.
    
    WebKit/win:
    
    * Interfaces/IWebUserContentURLPattern.idl: Added.
    
    * Interfaces/WebKit.idl: Added WebUserContentURLPattern.
    
    * WebKit.vcproj/Interfaces.vcproj: Added IWebUserContentURLPattern.
    
    * WebKit.vcproj/WebKit.vcproj: Added WebUserContentURLPattern.
    
    * WebUserContentURLPattern.cpp: Added.
    (WebUserContentURLPattern::WebUserContentURLPattern):
    (WebUserContentURLPattern::~WebUserContentURLPattern):
    (WebUserContentURLPattern::createInstance):
    (WebUserContentURLPattern::AddRef):
    (WebUserContentURLPattern::Release):
    (WebUserContentURLPattern::QueryInterface):
    Standard COM implementations.
    
    (WebUserContentURLPattern::parse): Parse the string into a
    UserContentURLPattern and store it.
    
    (WebUserContentURLPattern::isValid):
    (WebUserContentURLPattern::scheme):
    (WebUserContentURLPattern::host):
    (WebUserContentURLPattern::matchesSubdomains):
    Call through to UserContentURLPattern.
    
    * WebUserContentURLPattern.h: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cc912cec
UserContentURLPattern.h 2.42 KB