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

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

Issue 2807073002: Removed local RefPtr objects created from PassRefPtr arguments. (Closed)
Patch Set: addressed review Created 3 years, 8 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Given a redirected-to URL, check if the location is allowed 112 // Given a redirected-to URL, check if the location is allowed
113 // according to CORS. That is: 113 // according to CORS. That is:
114 // - the URL has a CORS supported scheme and 114 // - the URL has a CORS supported scheme and
115 // - the URL does not contain the userinfo production. 115 // - the URL does not contain the userinfo production.
116 // 116 //
117 // Returns |kRedirectSuccess| in all other cases. Use 117 // Returns |kRedirectSuccess| in all other cases. Use
118 // |redirectErrorString()| to construct a user-friendly error 118 // |redirectErrorString()| to construct a user-friendly error
119 // message for any of the error conditions. 119 // message for any of the error conditions.
120 static RedirectStatus CheckRedirectLocation(const KURL&); 120 static RedirectStatus CheckRedirectLocation(const KURL&);
121 121
122 static bool HandleRedirect(PassRefPtr<SecurityOrigin>, 122 static bool HandleRedirect(RefPtr<SecurityOrigin>,
123 ResourceRequest&, 123 ResourceRequest&,
124 const ResourceResponse&, 124 const ResourceResponse&,
125 StoredCredentials, 125 StoredCredentials,
126 ResourceLoaderOptions&, 126 ResourceLoaderOptions&,
127 String&); 127 String&);
128 128
129 // Stringify errors from CORS access checks, preflight or redirect checks. 129 // Stringify errors from CORS access checks, preflight or redirect checks.
130 static void AccessControlErrorString(StringBuilder&, 130 static void AccessControlErrorString(StringBuilder&,
131 AccessStatus, 131 AccessStatus,
132 const ResourceResponse&, 132 const ResourceResponse&,
(...skipping 13 matching lines...) Expand all
146 146
147 PLATFORM_EXPORT void ParseAccessControlExposeHeadersAllowList( 147 PLATFORM_EXPORT void ParseAccessControlExposeHeadersAllowList(
148 const String& header_value, 148 const String& header_value,
149 HTTPHeaderSet&); 149 HTTPHeaderSet&);
150 PLATFORM_EXPORT void ExtractCorsExposedHeaderNamesList(const ResourceResponse&, 150 PLATFORM_EXPORT void ExtractCorsExposedHeaderNamesList(const ResourceResponse&,
151 HTTPHeaderSet&); 151 HTTPHeaderSet&);
152 152
153 } // namespace blink 153 } // namespace blink
154 154
155 #endif // CrossOriginAccessControl_h 155 #endif // CrossOriginAccessControl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698