Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Unified Diff: third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp

Issue 2533683002: Move the code in ResourceFetcher handling calls from WebURLLoaderImpl to ResourceLoader (Closed)
Patch Set: Fix test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp b/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp
index 50a2bbe67d0c73b7e723f9f11eedf298478d46cf..c84b6ea9a22c2219d5a85a8e85b8c5b1a9aa1612 100644
--- a/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp
@@ -571,6 +571,12 @@ bool SecurityOrigin::isSameSchemeHostPortAndSuborigin(
return isSameSchemeHostPort(other) && sameSuborigins;
}
+bool SecurityOrigin::areSameSchemeHostPort(const KURL& a, const KURL& b) {
+ RefPtr<SecurityOrigin> originA = SecurityOrigin::create(a);
+ RefPtr<SecurityOrigin> originB = SecurityOrigin::create(b);
+ return originB->isSameSchemeHostPort(originA.get());
+}
+
const KURL& SecurityOrigin::urlWithUniqueSecurityOrigin() {
ASSERT(isMainThread());
DEFINE_STATIC_LOCAL(const KURL, uniqueSecurityOriginURL,
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698