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

Side by Side Diff: Source/core/frame/ContentSecurityPolicy.h

Issue 132613003: CSP 1.1: Remove the 'SecurityPolicy' interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/frame/ContentSecurityPolicy.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google, Inc. All rights reserved. 2 * Copyright (C) 2011 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 bool allowStyleNonce(const String& nonce) const; 110 bool allowStyleNonce(const String& nonce) const;
111 bool allowScriptHash(const String& source) const; 111 bool allowScriptHash(const String& source) const;
112 112
113 void usesScriptHashAlgorithms(uint8_t HashAlgorithms); 113 void usesScriptHashAlgorithms(uint8_t HashAlgorithms);
114 114
115 ReflectedXSSDisposition reflectedXSSDisposition() const; 115 ReflectedXSSDisposition reflectedXSSDisposition() const;
116 116
117 void setOverrideAllowInlineStyle(bool); 117 void setOverrideAllowInlineStyle(bool);
118 118
119 bool isActive() const; 119 bool isActive() const;
120 void gatherReportURIs(DOMStringList&) const;
121 120
122 void reportDirectiveAsSourceExpression(const String& directiveName, const St ring& sourceExpression) const; 121 void reportDirectiveAsSourceExpression(const String& directiveName, const St ring& sourceExpression) const;
123 void reportDuplicateDirective(const String&) const; 122 void reportDuplicateDirective(const String&) const;
124 void reportInvalidDirectiveValueCharacter(const String& directiveName, const String& value) const; 123 void reportInvalidDirectiveValueCharacter(const String& directiveName, const String& value) const;
125 void reportInvalidPathCharacter(const String& directiveName, const String& v alue, const char) const; 124 void reportInvalidPathCharacter(const String& directiveName, const String& v alue, const char) const;
126 void reportInvalidPluginTypes(const String&) const; 125 void reportInvalidPluginTypes(const String&) const;
127 void reportInvalidSandboxFlags(const String&) const; 126 void reportInvalidSandboxFlags(const String&) const;
128 void reportInvalidSourceExpression(const String& directiveName, const String & source) const; 127 void reportInvalidSourceExpression(const String& directiveName, const String & source) const;
129 void reportInvalidReflectedXSS(const String&) const; 128 void reportInvalidReflectedXSS(const String&) const;
130 void reportMissingReportURI(const String&) const; 129 void reportMissingReportURI(const String&) const;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 161
163 // We put the hash functions used on the policy object so that we only need 162 // We put the hash functions used on the policy object so that we only need
164 // to calculate a script hash once and then distribute it to all of the 163 // to calculate a script hash once and then distribute it to all of the
165 // directives for validation. 164 // directives for validation.
166 uint8_t m_sourceHashAlgorithmsUsed; 165 uint8_t m_sourceHashAlgorithmsUsed;
167 }; 166 };
168 167
169 } 168 }
170 169
171 #endif 170 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/frame/ContentSecurityPolicy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698