| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 static bool handleRedirect(PassRefPtr<SecurityOrigin>, | 56 static bool handleRedirect(PassRefPtr<SecurityOrigin>, |
| 57 ResourceRequest&, | 57 ResourceRequest&, |
| 58 const ResourceResponse&, | 58 const ResourceResponse&, |
| 59 StoredCredentials, | 59 StoredCredentials, |
| 60 ResourceLoaderOptions&, | 60 ResourceLoaderOptions&, |
| 61 String&); | 61 String&); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 CORE_EXPORT bool isOnAccessControlResponseHeaderWhitelist(const String&); | 64 CORE_EXPORT bool isOnAccessControlResponseHeaderWhitelist(const String&); |
| 65 | 65 |
| 66 void updateRequestForAccessControl(ResourceRequest&, | |
| 67 const SecurityOrigin*, | |
| 68 StoredCredentials); | |
| 69 CORE_EXPORT ResourceRequest | 66 CORE_EXPORT ResourceRequest |
| 70 createAccessControlPreflightRequest(const ResourceRequest&, | 67 createAccessControlPreflightRequest(const ResourceRequest&, |
| 71 const SecurityOrigin*); | 68 const SecurityOrigin*); |
| 72 | 69 |
| 73 bool passesAccessControlCheck(const ResourceResponse&, | 70 bool passesAccessControlCheck(const ResourceResponse&, |
| 74 StoredCredentials, | 71 StoredCredentials, |
| 75 const SecurityOrigin*, | 72 const SecurityOrigin*, |
| 76 String& errorDescription, | 73 String& errorDescription, |
| 77 WebURLRequest::RequestContext requestType); | 74 WebURLRequest::RequestContext requestType); |
| 78 bool passesPreflightStatusCheck(const ResourceResponse&, | 75 bool passesPreflightStatusCheck(const ResourceResponse&, |
| 79 String& errorDescription); | 76 String& errorDescription); |
| 80 bool passesExternalPreflightCheck(const ResourceResponse&, | 77 bool passesExternalPreflightCheck(const ResourceResponse&, |
| 81 String& errorDescription); | 78 String& errorDescription); |
| 82 CORE_EXPORT void parseAccessControlExposeHeadersAllowList( | 79 CORE_EXPORT void parseAccessControlExposeHeadersAllowList( |
| 83 const String& headerValue, | 80 const String& headerValue, |
| 84 HTTPHeaderSet&); | 81 HTTPHeaderSet&); |
| 85 CORE_EXPORT void extractCorsExposedHeaderNamesList(const ResourceResponse&, | 82 CORE_EXPORT void extractCorsExposedHeaderNamesList(const ResourceResponse&, |
| 86 HTTPHeaderSet&); | 83 HTTPHeaderSet&); |
| 87 | 84 |
| 88 } // namespace blink | 85 } // namespace blink |
| 89 | 86 |
| 90 #endif // CrossOriginAccessControl_h | 87 #endif // CrossOriginAccessControl_h |
| OLD | NEW |