| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "platform/weborigin/SecurityPolicy.h" | 29 #include "platform/weborigin/SecurityPolicy.h" |
| 30 | 30 |
| 31 #include "platform/RuntimeEnabledFeatures.h" | 31 #include "platform/RuntimeEnabledFeatures.h" |
| 32 #include "platform/weborigin/KURL.h" | 32 #include "platform/weborigin/KURL.h" |
| 33 #include "platform/weborigin/OriginAccessEntry.h" | 33 #include "platform/weborigin/OriginAccessEntry.h" |
| 34 #include "platform/weborigin/SchemeRegistry.h" | 34 #include "platform/weborigin/SchemeRegistry.h" |
| 35 #include "platform/weborigin/SecurityOrigin.h" | 35 #include "platform/weborigin/SecurityOrigin.h" |
| 36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
| 37 #include "wtf/HashSet.h" | 37 #include "wtf/HashSet.h" |
| 38 #include "wtf/MainThread.h" | |
| 39 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
| 40 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
| 41 #include "wtf/Threading.h" | 40 #include "wtf/Threading.h" |
| 42 #include "wtf/text/StringHash.h" | 41 #include "wtf/text/StringHash.h" |
| 43 | 42 |
| 44 namespace blink { | 43 namespace blink { |
| 45 | 44 |
| 46 using OriginAccessWhiteList = Vector<OriginAccessEntry>; | 45 using OriginAccessWhiteList = Vector<OriginAccessEntry>; |
| 47 using OriginAccessMap = HashMap<String, OwnPtr<OriginAccessWhiteList>>; | 46 using OriginAccessMap = HashMap<String, OwnPtr<OriginAccessWhiteList>>; |
| 48 using OriginSet = HashSet<String>; | 47 using OriginSet = HashSet<String>; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 return true; | 232 return true; |
| 234 } | 233 } |
| 235 if (equalIgnoringCase(policy, "no-referrer-when-downgrade") || equalIgnoring
Case(policy, "default")) { | 234 if (equalIgnoringCase(policy, "no-referrer-when-downgrade") || equalIgnoring
Case(policy, "default")) { |
| 236 *result = ReferrerPolicyNoReferrerWhenDowngrade; | 235 *result = ReferrerPolicyNoReferrerWhenDowngrade; |
| 237 return true; | 236 return true; |
| 238 } | 237 } |
| 239 return false; | 238 return false; |
| 240 } | 239 } |
| 241 | 240 |
| 242 } // namespace blink | 241 } // namespace blink |
| OLD | NEW |