OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 WTF_MAKE_NONCOPYABLE(CrossOriginPreflightResultCache); WTF_MAKE_FAST_ALL
OCATED; | 69 WTF_MAKE_NONCOPYABLE(CrossOriginPreflightResultCache); WTF_MAKE_FAST_ALL
OCATED; |
70 public: | 70 public: |
71 static CrossOriginPreflightResultCache& shared(); | 71 static CrossOriginPreflightResultCache& shared(); |
72 | 72 |
73 void appendEntry(const String& origin, const KURL&, PassOwnPtr<CrossOrig
inPreflightResultCacheItem>); | 73 void appendEntry(const String& origin, const KURL&, PassOwnPtr<CrossOrig
inPreflightResultCacheItem>); |
74 bool canSkipPreflight(const String& origin, const KURL&, StoredCredentia
ls, const String& method, const HTTPHeaderMap& requestHeaders); | 74 bool canSkipPreflight(const String& origin, const KURL&, StoredCredentia
ls, const String& method, const HTTPHeaderMap& requestHeaders); |
75 | 75 |
76 private: | 76 private: |
77 CrossOriginPreflightResultCache() { } | 77 CrossOriginPreflightResultCache() { } |
78 | 78 |
79 typedef HashMap<std::pair<String, KURL>, OwnPtr<CrossOriginPreflightResu
ltCacheItem> > CrossOriginPreflightResultHashMap; | 79 typedef HashMap<std::pair<String, KURL>, OwnPtr<CrossOriginPreflightResu
ltCacheItem>> CrossOriginPreflightResultHashMap; |
80 | 80 |
81 CrossOriginPreflightResultHashMap m_preflightHashMap; | 81 CrossOriginPreflightResultHashMap m_preflightHashMap; |
82 }; | 82 }; |
83 | 83 |
84 } // namespace blink | 84 } // namespace blink |
85 | 85 |
86 #endif | 86 #endif |
OLD | NEW |