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

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

Issue 2401573003: CSP: Fix 'strict-dynamic' with multiple policies. (Closed)
Patch Set: Tests compile. 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 m_options.integrityMetadata = metadata; 110 m_options.integrityMetadata = metadata;
111 } 111 }
112 112
113 String contentSecurityPolicyNonce() const { 113 String contentSecurityPolicyNonce() const {
114 return m_options.contentSecurityPolicyNonce; 114 return m_options.contentSecurityPolicyNonce;
115 } 115 }
116 void setContentSecurityPolicyNonce(const String& nonce) { 116 void setContentSecurityPolicyNonce(const String& nonce) {
117 m_options.contentSecurityPolicyNonce = nonce; 117 m_options.contentSecurityPolicyNonce = nonce;
118 } 118 }
119 119
120 void setParserDisposition(ParserDisposition parserDisposition) {
121 m_options.parserDisposition = parserDisposition;
122 }
123
120 void makeSynchronous(); 124 void makeSynchronous();
121 125
122 private: 126 private:
123 ResourceRequest m_resourceRequest; 127 ResourceRequest m_resourceRequest;
124 String m_charset; 128 String m_charset;
125 ResourceLoaderOptions m_options; 129 ResourceLoaderOptions m_options;
126 bool m_forPreload; 130 bool m_forPreload;
127 bool m_linkPreload; 131 bool m_linkPreload;
128 double m_preloadDiscoveryTime; 132 double m_preloadDiscoveryTime;
129 DeferOption m_defer; 133 DeferOption m_defer;
130 OriginRestriction m_originRestriction; 134 OriginRestriction m_originRestriction;
131 ResourceWidth m_resourceWidth; 135 ResourceWidth m_resourceWidth;
132 ClientHintsPreferences m_clientHintPreferences; 136 ClientHintsPreferences m_clientHintPreferences;
133 }; 137 };
134 138
135 } // namespace blink 139 } // namespace blink
136 140
137 #endif 141 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceLoaderOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698