OLD | NEW |
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 void didReceiveHeader(const String&, HeaderType); | 83 void didReceiveHeader(const String&, HeaderType); |
84 | 84 |
85 // These functions are wrong because they assume that there is only one head
er. | 85 // These functions are wrong because they assume that there is only one head
er. |
86 // FIXME: Replace them with functions that return vectors. | 86 // FIXME: Replace them with functions that return vectors. |
87 const String& deprecatedHeader() const; | 87 const String& deprecatedHeader() const; |
88 HeaderType deprecatedHeaderType() const; | 88 HeaderType deprecatedHeaderType() const; |
89 | 89 |
90 bool allowJavaScriptURLs(const String& contextURL, const WTF::OrdinalNumber&
contextLine, ReportingStatus = SendReport) const; | 90 bool allowJavaScriptURLs(const String& contextURL, const WTF::OrdinalNumber&
contextLine, ReportingStatus = SendReport) const; |
91 bool allowInlineEventHandlers(const String& contextURL, const WTF::OrdinalNu
mber& contextLine, ReportingStatus = SendReport) const; | 91 bool allowInlineEventHandlers(const String& contextURL, const WTF::OrdinalNu
mber& contextLine, ReportingStatus = SendReport) const; |
92 bool allowInlineScript(const String& contextURL, const WTF::OrdinalNumber& c
ontextLine, ReportingStatus = SendReport) const; | 92 bool allowInlineScript(const String& nonce, const String& contextURL, const
WTF::OrdinalNumber& contextLine, ReportingStatus = SendReport) const; |
93 bool allowInlineStyle(const String& contextURL, const WTF::OrdinalNumber& co
ntextLine, ReportingStatus = SendReport) const; | 93 bool allowInlineStyle(const String& contextURL, const WTF::OrdinalNumber& co
ntextLine, ReportingStatus = SendReport) const; |
94 bool allowEval(ScriptState* = 0, ReportingStatus = SendReport) const; | 94 bool allowEval(ScriptState* = 0, ReportingStatus = SendReport) const; |
95 bool allowScriptNonce(const String& nonce, const String& contextURL, const W
TF::OrdinalNumber& contextLine, const KURL& = KURL()) const; | |
96 bool allowPluginType(const String& type, const String& typeAttribute, const
KURL&, ReportingStatus = SendReport) const; | 95 bool allowPluginType(const String& type, const String& typeAttribute, const
KURL&, ReportingStatus = SendReport) const; |
97 | 96 |
98 bool allowScriptFromSource(const KURL&, ReportingStatus = SendReport) const; | 97 bool allowScriptFromSource(const KURL&, const String& nonce, ReportingStatus
= SendReport) const; |
99 bool allowObjectFromSource(const KURL&, ReportingStatus = SendReport) const; | 98 bool allowObjectFromSource(const KURL&, ReportingStatus = SendReport) const; |
100 bool allowChildFrameFromSource(const KURL&, ReportingStatus = SendReport) co
nst; | 99 bool allowChildFrameFromSource(const KURL&, ReportingStatus = SendReport) co
nst; |
101 bool allowImageFromSource(const KURL&, ReportingStatus = SendReport) const; | 100 bool allowImageFromSource(const KURL&, ReportingStatus = SendReport) const; |
102 bool allowStyleFromSource(const KURL&, ReportingStatus = SendReport) const; | 101 bool allowStyleFromSource(const KURL&, ReportingStatus = SendReport) const; |
103 bool allowFontFromSource(const KURL&, ReportingStatus = SendReport) const; | 102 bool allowFontFromSource(const KURL&, ReportingStatus = SendReport) const; |
104 bool allowMediaFromSource(const KURL&, ReportingStatus = SendReport) const; | 103 bool allowMediaFromSource(const KURL&, ReportingStatus = SendReport) const; |
105 bool allowConnectToSource(const KURL&, ReportingStatus = SendReport) const; | 104 bool allowConnectToSource(const KURL&, ReportingStatus = SendReport) const; |
106 bool allowFormAction(const KURL&, ReportingStatus = SendReport) const; | 105 bool allowFormAction(const KURL&, ReportingStatus = SendReport) const; |
107 bool allowBaseURI(const KURL&, ReportingStatus = SendReport) const; | 106 bool allowBaseURI(const KURL&, ReportingStatus = SendReport) const; |
108 | 107 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 void logToConsole(const String& message, const String& contextURL = String()
, const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), Scr
iptState* = 0) const; | 141 void logToConsole(const String& message, const String& contextURL = String()
, const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), Scr
iptState* = 0) const; |
143 | 142 |
144 ScriptExecutionContext* m_scriptExecutionContext; | 143 ScriptExecutionContext* m_scriptExecutionContext; |
145 bool m_overrideInlineStyleAllowed; | 144 bool m_overrideInlineStyleAllowed; |
146 CSPDirectiveListVector m_policies; | 145 CSPDirectiveListVector m_policies; |
147 }; | 146 }; |
148 | 147 |
149 } | 148 } |
150 | 149 |
151 #endif | 150 #endif |
OLD | NEW |