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

Unified Diff: Source/platform/weborigin/SecurityPolicy.cpp

Issue 54053006: Move weborigin/ under platform/ so that it may someday call platform APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Stale refernence to weboriginexport in .gpyi Created 7 years, 1 month 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
« no previous file with comments | « Source/platform/weborigin/SecurityPolicy.h ('k') | Source/web/ApplicationCacheHost.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/weborigin/SecurityPolicy.cpp
diff --git a/Source/weborigin/SecurityPolicy.cpp b/Source/platform/weborigin/SecurityPolicy.cpp
similarity index 95%
rename from Source/weborigin/SecurityPolicy.cpp
rename to Source/platform/weborigin/SecurityPolicy.cpp
index 0dc274c6cb0983375affa30c98a263132d88ebc1..c552f4951672b8a3c507aa57124111a7dc7d33ed 100644
--- a/Source/weborigin/SecurityPolicy.cpp
+++ b/Source/platform/weborigin/SecurityPolicy.cpp
@@ -27,11 +27,11 @@
*/
#include "config.h"
-#include "weborigin/SecurityPolicy.h"
+#include "platform/weborigin/SecurityPolicy.h"
-#include "weborigin/KURL.h"
-#include "weborigin/OriginAccessEntry.h"
-#include "weborigin/SecurityOrigin.h"
+#include "platform/weborigin/KURL.h"
+#include "platform/weborigin/OriginAccessEntry.h"
+#include "platform/weborigin/SecurityOrigin.h"
#include "wtf/MainThread.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
@@ -93,9 +93,9 @@ bool SecurityPolicy::isAccessWhiteListed(const SecurityOrigin* activeOrigin, con
{
if (OriginAccessWhiteList* list = originAccessMap().get(activeOrigin->toString())) {
for (size_t i = 0; i < list->size(); ++i) {
- if (list->at(i).matchesOrigin(*targetOrigin))
- return true;
- }
+ if (list->at(i).matchesOrigin(*targetOrigin))
+ return true;
+ }
}
return false;
}
« no previous file with comments | « Source/platform/weborigin/SecurityPolicy.h ('k') | Source/web/ApplicationCacheHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698