Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CSPDirectiveList_h | 5 #ifndef CSPDirectiveList_h |
| 6 #define CSPDirectiveList_h | 6 #define CSPDirectiveList_h |
| 7 | 7 |
| 8 #include "core/frame/csp/ContentSecurityPolicy.h" | 8 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 9 #include "core/frame/csp/MediaListDirective.h" | 9 #include "core/frame/csp/MediaListDirective.h" |
| 10 #include "core/frame/csp/SourceListDirective.h" | 10 #include "core/frame/csp/SourceListDirective.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } | 68 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } |
| 69 bool didSetReferrerPolicy() const { return m_didSetReferrerPolicy; } | 69 bool didSetReferrerPolicy() const { return m_didSetReferrerPolicy; } |
| 70 bool isReportOnly() const { return m_reportOnly; } | 70 bool isReportOnly() const { return m_reportOnly; } |
| 71 const Vector<String>& reportEndpoints() const { return m_reportEndpoints; } | 71 const Vector<String>& reportEndpoints() const { return m_reportEndpoints; } |
| 72 | 72 |
| 73 // Used to copy plugin-types into a plugin document in a nested | 73 // Used to copy plugin-types into a plugin document in a nested |
| 74 // browsing context. | 74 // browsing context. |
| 75 bool hasPluginTypes() const { return !!m_pluginTypes; }; | 75 bool hasPluginTypes() const { return !!m_pluginTypes; }; |
| 76 const String& pluginTypesText() const; | 76 const String& pluginTypesText() const; |
| 77 | 77 |
| 78 bool hasScriptPolicy() const; | |
| 79 bool hasStylePolicy() const; | |
| 80 bool hasImagePolicy() const; | |
| 81 bool hasFontPolicy() const; | |
| 82 bool hasMediaPolicy() const; | |
| 83 bool hasPluginPolicy() const; | |
|
Mike West
2015/03/16 10:39:11
Same here. Just pipe a request down into whatever
estark
2015/03/17 18:27:34
Done.
| |
| 84 | |
| 78 private: | 85 private: |
| 79 CSPDirectiveList(ContentSecurityPolicy*, ContentSecurityPolicyHeaderType, Co ntentSecurityPolicyHeaderSource); | 86 CSPDirectiveList(ContentSecurityPolicy*, ContentSecurityPolicyHeaderType, Co ntentSecurityPolicyHeaderSource); |
| 80 | 87 |
| 81 bool parseDirective(const UChar* begin, const UChar* end, String& name, Stri ng& value); | 88 bool parseDirective(const UChar* begin, const UChar* end, String& name, Stri ng& value); |
| 82 void parseReportURI(const String& name, const String& value); | 89 void parseReportURI(const String& name, const String& value); |
| 83 void parsePluginTypes(const String& name, const String& value); | 90 void parsePluginTypes(const String& name, const String& value); |
| 84 void parseReflectedXSS(const String& name, const String& value); | 91 void parseReflectedXSS(const String& name, const String& value); |
| 85 void parseReferrer(const String& name, const String& value); | 92 void parseReferrer(const String& name, const String& value); |
| 86 void addDirective(const String& name, const String& value); | 93 void addDirective(const String& name, const String& value); |
| 87 void applySandboxPolicy(const String& name, const String& sandboxPolicy); | 94 void applySandboxPolicy(const String& name, const String& sandboxPolicy); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 152 | 159 |
| 153 Vector<String> m_reportEndpoints; | 160 Vector<String> m_reportEndpoints; |
| 154 | 161 |
| 155 String m_evalDisabledErrorMessage; | 162 String m_evalDisabledErrorMessage; |
| 156 }; | 163 }; |
| 157 | 164 |
| 158 | 165 |
| 159 } // namespace | 166 } // namespace |
| 160 | 167 |
| 161 #endif | 168 #endif |
| OLD | NEW |