SecurityOrigin* DOMWrapperWorld::isolatedWorldSecurityOrigin() { ASSERT(this->isIsolatedWorld()); IsolatedWorldSecurityOriginMap& origins = isolatedWorldSecurityOrigins(); IsolatedWorldSecurityOriginMap::iterator it = origins.find(worldId()); return it == origins.end() ? 0 : it->value.get(); }
bool DOMWrapperWorld::isolatedWorldHasContentSecurityPolicy() { ASSERT(this->isIsolatedWorld()); IsolatedWorldContentSecurityPolicyMap& policies = isolatedWorldContentSecurityPolicies(); IsolatedWorldContentSecurityPolicyMap::iterator it = policies.find(worldId()); return it == policies.end() ? false : it->value; }
bool UserScript::operator==(const UserScript &other) const { if (isNull() != other.isNull()) return false; if (isNull()) // neither is valid return true; return worldId() == other.worldId() && runsOnSubFrames() == other.runsOnSubFrames() && injectionPoint() == other.injectionPoint() && name() == other.name() && sourceCode() == other.sourceCode(); }
String DOMWrapperWorld::isolatedWorldHumanReadableName() { ASSERT(this->isIsolatedWorld()); return isolatedWorldHumanReadableNames().get(worldId()); }