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

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

Issue 2635023003: Fix a bug in origin header generation for CORS preflight in extensions (Closed)
Patch Set: Rebase 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 static void preflightErrorString(StringBuilder&, 135 static void preflightErrorString(StringBuilder&,
136 PreflightStatus, 136 PreflightStatus,
137 const ResourceResponse&); 137 const ResourceResponse&);
138 static void redirectErrorString(StringBuilder&, RedirectStatus, const KURL&); 138 static void redirectErrorString(StringBuilder&, RedirectStatus, const KURL&);
139 }; 139 };
140 140
141 // TODO: also migrate these into the above static class. 141 // TODO: also migrate these into the above static class.
142 CORE_EXPORT bool isOnAccessControlResponseHeaderWhitelist(const String&); 142 CORE_EXPORT bool isOnAccessControlResponseHeaderWhitelist(const String&);
143 143
144 CORE_EXPORT ResourceRequest 144 CORE_EXPORT ResourceRequest
145 createAccessControlPreflightRequest(const ResourceRequest&, 145 createAccessControlPreflightRequest(const ResourceRequest&);
146 const SecurityOrigin*);
147 146
148 CORE_EXPORT void parseAccessControlExposeHeadersAllowList( 147 CORE_EXPORT void parseAccessControlExposeHeadersAllowList(
149 const String& headerValue, 148 const String& headerValue,
150 HTTPHeaderSet&); 149 HTTPHeaderSet&);
151 CORE_EXPORT void extractCorsExposedHeaderNamesList(const ResourceResponse&, 150 CORE_EXPORT void extractCorsExposedHeaderNamesList(const ResourceResponse&,
152 HTTPHeaderSet&); 151 HTTPHeaderSet&);
153 152
154 } // namespace blink 153 } // namespace blink
155 154
156 #endif // CrossOriginAccessControl_h 155 #endif // CrossOriginAccessControl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698