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

Unified Diff: third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h

Issue 2399463007: AssociatedURLLoader shouldn't derive from WebURLLoader (Closed)
Patch Set: Rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h
diff --git a/third_party/WebKit/public/web/WebURLLoaderOptions.h b/third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h
similarity index 78%
rename from third_party/WebKit/public/web/WebURLLoaderOptions.h
rename to third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h
index 17e242ea2e40017e7a2f10adcb42c5bfa588449b..c8e5f5e397d00d1d8f849bca00ff19ee5f0d53a7 100644
--- a/third_party/WebKit/public/web/WebURLLoaderOptions.h
+++ b/third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h
@@ -28,12 +28,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebURLLoaderOptions_h
-#define WebURLLoaderOptions_h
+#ifndef WebAssociatedURLLoaderOptions_h
+#define WebAssociatedURLLoaderOptions_h
namespace blink {
-struct WebURLLoaderOptions {
+struct WebAssociatedURLLoaderOptions {
enum CrossOriginRequestPolicy {
CrossOriginRequestPolicyDeny,
CrossOriginRequestPolicyUseAccessControl,
@@ -42,20 +42,21 @@ struct WebURLLoaderOptions {
enum PreflightPolicy { ConsiderPreflight, ForcePreflight, PreventPreflight };
- WebURLLoaderOptions()
+ WebAssociatedURLLoaderOptions()
: untrustedHTTP(false),
allowCredentials(false),
exposeAllResponseHeaders(false),
preflightPolicy(ConsiderPreflight),
crossOriginRequestPolicy(CrossOriginRequestPolicyDeny) {}
- bool untrustedHTTP; // Whether to validate the method and headers as if this
- // was an XMLHttpRequest.
- bool allowCredentials; // Whether to send HTTP credentials and cookies with
- // the request.
- bool exposeAllResponseHeaders; // If policy is to use access control, whether
- // to expose non-whitelisted response headers
- // to the client.
+ // Whether to validate the method and headers as if this was an
+ // XMLHttpRequest.
+ bool untrustedHTTP;
+ // Whether to send HTTP credentials and cookies with the request.
+ bool allowCredentials;
+ // If policy is to use access control, whether to expose non-whitelisted
+ // response headers to the client.
+ bool exposeAllResponseHeaders;
PreflightPolicy preflightPolicy;
CrossOriginRequestPolicy crossOriginRequestPolicy;
};
« no previous file with comments | « third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h ('k') | third_party/WebKit/public/web/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698