Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.h

Issue 2642043004: Fix a bug in origin header generation for CORS preflight in extensions (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CORE_EXPORT ResourceRequest 66 CORE_EXPORT ResourceRequest
67 createAccessControlPreflightRequest(const ResourceRequest&, 67 createAccessControlPreflightRequest(const ResourceRequest&);
68 const SecurityOrigin*);
69 68
70 bool passesAccessControlCheck(const ResourceResponse&, 69 bool passesAccessControlCheck(const ResourceResponse&,
71 StoredCredentials, 70 StoredCredentials,
72 const SecurityOrigin*, 71 const SecurityOrigin*,
73 String& errorDescription, 72 String& errorDescription,
74 WebURLRequest::RequestContext requestType); 73 WebURLRequest::RequestContext requestType);
75 bool passesPreflightStatusCheck(const ResourceResponse&, 74 bool passesPreflightStatusCheck(const ResourceResponse&,
76 String& errorDescription); 75 String& errorDescription);
77 bool passesExternalPreflightCheck(const ResourceResponse&, 76 bool passesExternalPreflightCheck(const ResourceResponse&,
78 String& errorDescription); 77 String& errorDescription);
79 CORE_EXPORT void parseAccessControlExposeHeadersAllowList( 78 CORE_EXPORT void parseAccessControlExposeHeadersAllowList(
80 const String& headerValue, 79 const String& headerValue,
81 HTTPHeaderSet&); 80 HTTPHeaderSet&);
82 CORE_EXPORT void extractCorsExposedHeaderNamesList(const ResourceResponse&, 81 CORE_EXPORT void extractCorsExposedHeaderNamesList(const ResourceResponse&,
83 HTTPHeaderSet&); 82 HTTPHeaderSet&);
84 83
85 } // namespace blink 84 } // namespace blink
86 85
87 #endif // CrossOriginAccessControl_h 86 #endif // CrossOriginAccessControl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698