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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 class CSPDirectiveList; | 52 class CSPDirectiveList; |
53 class CSPSource; | 53 class CSPSource; |
54 class DOMStringList; | 54 class DOMStringList; |
55 class Document; | 55 class Document; |
56 class JSONObject; | 56 class JSONObject; |
57 class KURL; | 57 class KURL; |
58 class SecurityOrigin; | 58 class SecurityOrigin; |
59 | 59 |
60 typedef int SandboxFlags; | 60 typedef int SandboxFlags; |
61 typedef Vector<OwnPtr<CSPDirectiveList> > CSPDirectiveListVector; | 61 typedef Vector<OwnPtr<CSPDirectiveList> > CSPDirectiveListVector; |
62 typedef Vector<RefPtrWillBeRawPtr<ConsoleMessage> > ConsoleMessageVector; | 62 typedef WillBePersistentHeapVector<RefPtrWillBeMember<ConsoleMessage> > ConsoleM
essageVector; |
63 | 63 |
64 class ContentSecurityPolicy : public RefCounted<ContentSecurityPolicy> { | 64 class ContentSecurityPolicy : public RefCounted<ContentSecurityPolicy> { |
65 WTF_MAKE_FAST_ALLOCATED; | 65 WTF_MAKE_FAST_ALLOCATED; |
66 public: | 66 public: |
67 // CSP 1.0 Directives | 67 // CSP 1.0 Directives |
68 static const char ConnectSrc[]; | 68 static const char ConnectSrc[]; |
69 static const char DefaultSrc[]; | 69 static const char DefaultSrc[]; |
70 static const char FontSrc[]; | 70 static const char FontSrc[]; |
71 static const char FrameSrc[]; | 71 static const char FrameSrc[]; |
72 static const char ImgSrc[]; | 72 static const char ImgSrc[]; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 ReflectedXSSDisposition reflectedXSSDisposition() const; | 150 ReflectedXSSDisposition reflectedXSSDisposition() const; |
151 | 151 |
152 ReferrerPolicy referrerPolicy() const; | 152 ReferrerPolicy referrerPolicy() const; |
153 bool didSetReferrerPolicy() const; | 153 bool didSetReferrerPolicy() const; |
154 | 154 |
155 void setOverrideAllowInlineStyle(bool); | 155 void setOverrideAllowInlineStyle(bool); |
156 | 156 |
157 bool isActive() const; | 157 bool isActive() const; |
158 | 158 |
159 void logToConsole(PassRefPtr<ConsoleMessage>); | 159 void logToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>); |
160 | 160 |
161 void reportDirectiveAsSourceExpression(const String& directiveName, const St
ring& sourceExpression); | 161 void reportDirectiveAsSourceExpression(const String& directiveName, const St
ring& sourceExpression); |
162 void reportDuplicateDirective(const String&); | 162 void reportDuplicateDirective(const String&); |
163 void reportInvalidDirectiveValueCharacter(const String& directiveName, const
String& value); | 163 void reportInvalidDirectiveValueCharacter(const String& directiveName, const
String& value); |
164 void reportInvalidPathCharacter(const String& directiveName, const String& v
alue, const char); | 164 void reportInvalidPathCharacter(const String& directiveName, const String& v
alue, const char); |
165 void reportInvalidPluginTypes(const String&); | 165 void reportInvalidPluginTypes(const String&); |
166 void reportInvalidSandboxFlags(const String&); | 166 void reportInvalidSandboxFlags(const String&); |
167 void reportInvalidSourceExpression(const String& directiveName, const String
& source); | 167 void reportInvalidSourceExpression(const String& directiveName, const String
& source); |
168 void reportInvalidReflectedXSS(const String&); | 168 void reportInvalidReflectedXSS(const String&); |
169 void reportMissingReportURI(const String&); | 169 void reportMissingReportURI(const String&); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 SandboxFlags m_sandboxMask; | 223 SandboxFlags m_sandboxMask; |
224 ReferrerPolicy m_referrerPolicy; | 224 ReferrerPolicy m_referrerPolicy; |
225 String m_disableEvalErrorMessage; | 225 String m_disableEvalErrorMessage; |
226 | 226 |
227 OwnPtr<CSPSource> m_selfSource; | 227 OwnPtr<CSPSource> m_selfSource; |
228 }; | 228 }; |
229 | 229 |
230 } | 230 } |
231 | 231 |
232 #endif | 232 #endif |
OLD | NEW |