| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 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/SecurityOrigin.h" | 34 #include "platform/weborigin/SecurityOrigin.h" |
| 35 #include "wtf/HashMap.h" | 35 #include "wtf/HashMap.h" |
| 36 #include "wtf/MainThread.h" | 36 #include "wtf/MainThread.h" |
| 37 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
| 38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 39 #include "wtf/text/StringHash.h" | 39 #include "wtf/text/StringHash.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace blink { |
| 42 | 42 |
| 43 typedef Vector<OriginAccessEntry> OriginAccessWhiteList; | 43 typedef Vector<OriginAccessEntry> OriginAccessWhiteList; |
| 44 typedef HashMap<String, OwnPtr<OriginAccessWhiteList> > OriginAccessMap; | 44 typedef HashMap<String, OwnPtr<OriginAccessWhiteList> > OriginAccessMap; |
| 45 | 45 |
| 46 static OriginAccessMap& originAccessMap() | 46 static OriginAccessMap& originAccessMap() |
| 47 { | 47 { |
| 48 DEFINE_STATIC_LOCAL(OriginAccessMap, originAccessMap, ()); | 48 DEFINE_STATIC_LOCAL(OriginAccessMap, originAccessMap, ()); |
| 49 return originAccessMap; | 49 return originAccessMap; |
| 50 } | 50 } |
| 51 | 51 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 if (list->isEmpty()) | 149 if (list->isEmpty()) |
| 150 map.remove(it); | 150 map.remove(it); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void SecurityPolicy::resetOriginAccessWhitelists() | 153 void SecurityPolicy::resetOriginAccessWhitelists() |
| 154 { | 154 { |
| 155 ASSERT(isMainThread()); | 155 ASSERT(isMainThread()); |
| 156 originAccessMap().clear(); | 156 originAccessMap().clear(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace WebCore | 159 } // namespace blink |
| OLD | NEW |