-
abarth@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=72342 Reviewed by Eric Seidel. Over time, the SecurityOrigin constructor has grown a bit out of control. This patch attempts to separate the different concerns into free functions. The general approach is to put more logic in the "create" function and introduce a simple constructor for unique origins. This patch shouldn't change any behavior. * page/SecurityOrigin.cpp: (WebCore::schemeRequiresAuthority): (WebCore::shouldUseInnerURL): (WebCore::extractInnerURL): (WebCore::isDirectory): (WebCore::shouldTreatAsUniqueOrigin): (WebCore::SecurityOrigin::SecurityOrigin): (WebCore::SecurityOrigin::create): (WebCore::SecurityOrigin::createUnique): (WebCore::SecurityOrigin::databaseIdentifier): * page/SecurityOrigin.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
916250e3