| 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 14 matching lines...) Expand all Loading... |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "platform/weborigin/SecurityPolicy.h" | 30 #include "platform/weborigin/SecurityPolicy.h" |
| 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/MainThread.h" | 36 #include "wtf/MainThread.h" |
| 36 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
| 37 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 38 #include "wtf/text/StringHash.h" | 39 #include "wtf/text/StringHash.h" |
| 39 | 40 |
| 40 namespace WebCore { | 41 namespace WebCore { |
| 41 | 42 |
| 42 typedef Vector<OriginAccessEntry> OriginAccessWhiteList; | 43 typedef Vector<OriginAccessEntry> OriginAccessWhiteList; |
| 43 typedef HashMap<String, OwnPtr<OriginAccessWhiteList> > OriginAccessMap; | 44 typedef HashMap<String, OwnPtr<OriginAccessWhiteList> > OriginAccessMap; |
| 44 | 45 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 map.remove(it); | 147 map.remove(it); |
| 147 } | 148 } |
| 148 | 149 |
| 149 void SecurityPolicy::resetOriginAccessWhitelists() | 150 void SecurityPolicy::resetOriginAccessWhitelists() |
| 150 { | 151 { |
| 151 ASSERT(isMainThread()); | 152 ASSERT(isMainThread()); |
| 152 originAccessMap().clear(); | 153 originAccessMap().clear(); |
| 153 } | 154 } |
| 154 | 155 |
| 155 } // namespace WebCore | 156 } // namespace WebCore |
| OLD | NEW |