Need a WebKit2 Equivalent of WebSecurityOrigin
authorjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Dec 2010 17:30:57 +0000 (17:30 +0000)
committerjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Dec 2010 17:30:57 +0000 (17:30 +0000)
commitf4efac04cd76187ddc75ab957f6e217abb2097ab
treef4dbac6fbb03bd3662553936688cd8bd21b33386
parent469d8de514fb87a0d223e83690de9dca3b6aeccb
Need a WebKit2 Equivalent of WebSecurityOrigin
https://bugs.webkit.org/show_bug.cgi?id=50170

Reviewed by Sam Weinig.

WebCore:

* WebCore.exp.in:
Export the symbol for SecurityOrigin::createFromDatabaseIdentifier.

WebKit2:

* Shared/API/c/WKBase.h:
Add the WKSecurityOriginRef typedef.

* Shared/APIObject.h:
Add the SecurityOrigin type as a Shared type.

* Shared/API/c/WKSharedAPICast.h::
Add the mapping between WKSecurityOriginRef and WebSecurityOrigin.

* UIProcess/API/C/WKSecurityOrigin.cpp: Added.
(WKSecurityOriginGetTypeID):
(WKSecurityOriginCreate):
(WKSecurityOriginGetProtocol):
(WKSecurityOriginGetHost):
(WKSecurityOriginGetPort):
* UIProcess/API/C/WKSecurityOrigin.h: Added.

* UIProcess/WebSecurityOrigin.h: Added.
(WebKit::WebSecurityOrigin::create):
Create based on the database identifier, which contains the protocol, host and port.
(WebKit::WebSecurityOrigin::protocol):
(WebKit::WebSecurityOrigin::host):
(WebKit::WebSecurityOrigin::port):
(WebKit::WebSecurityOrigin::databaseIdentifier):
(WebKit::WebSecurityOrigin::WebSecurityOrigin):
(WebKit::WebSecurityOrigin::type):

* WebKit2.pro:
Add WKSecurityOrigin.cpp/.h.

* WebKit2.xcodeproj/project.pbxproj:
* win/WebKit2.vcproj:
Add the WebSecurityOrigin.h and WKSecurityOrigin.cpp/.h.

* win/WebKit2Generated.make:
Make sure WKSecurityOrigin.h file gets copied over to the WebKitBuild directory on Windows.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
WebCore/ChangeLog
WebCore/WebCore.exp.in
WebKit2/ChangeLog
WebKit2/Shared/API/c/WKBase.h
WebKit2/Shared/API/c/WKSecurityOrigin.cpp [new file with mode: 0644]
WebKit2/Shared/API/c/WKSecurityOrigin.h [new file with mode: 0644]
WebKit2/Shared/API/c/WKSharedAPICast.h
WebKit2/Shared/APIObject.h
WebKit2/Shared/WebSecurityOrigin.h [new file with mode: 0644]
WebKit2/WebKit2.pro
WebKit2/WebKit2.xcodeproj/project.pbxproj
WebKit2/win/WebKit2.vcproj
WebKit2/win/WebKit2Generated.make