Home | History | Annotate | Download | only in page

Lines Matching refs:url

80 SecurityOrigin::SecurityOrigin(const KURL& url, SandboxFlags sandboxFlags)
82 , m_protocol(url.protocol().isNull() ? "" : url.protocol().lower())
83 , m_host(url.host().isNull() ? "" : url.host().lower())
84 , m_port(url.port())
100 if (!url.hasPath() || url.path().endsWith("/"))
126 PassRefPtr<SecurityOrigin> SecurityOrigin::create(const KURL& url, SandboxFlags sandboxFlags)
128 if (!url.isValid())
130 return adoptRef(new SecurityOrigin(url, sandboxFlags));
215 bool SecurityOrigin::canRequest(const KURL& url) const
223 RefPtr<SecurityOrigin> targetOrigin = SecurityOrigin::create(url);
242 bool SecurityOrigin::taintsCanvas(const KURL& url) const
244 if (canRequest(url))
251 // data URL security, then we can remove this function in favor of
253 if (url.protocolIs("data"))
259 bool SecurityOrigin::canLoad(const KURL& url, const String& referrer, Document* document)
261 if (!shouldTreatURLAsLocal(url.string()))
294 bool SecurityOrigin::isSecureTransitionTo(const KURL& url) const
300 RefPtr<SecurityOrigin> other = SecurityOrigin::create(url);
427 bool SecurityOrigin::shouldTreatURLAsLocal(const String& url)
431 if (url.length() >= 5) {
432 const UChar* s = url.characters();
439 int loc = url.find(':');
443 String scheme = url.left(loc);
475 bool SecurityOrigin::shouldHideReferrer(const KURL& url, const String& referrer)
486 bool URLIsSecureURL = url.protocolIs("https");