tizen beta release
[framework/web/webkit-efl.git] / Source / WebCore / html / parser / XSSAuditor.h
index 2583a19..89b7b8c 100755 (executable)
@@ -48,6 +48,11 @@ private:
         AfterScriptStartTag,
     };
 
+    enum AttributeKind {
+        NormalAttribute,
+        SrcLikeAttribute
+    };
+
     void init();
 
     bool filterTokenInitial(HTMLToken&);
@@ -64,11 +69,11 @@ private:
     bool filterFormToken(HTMLToken&);
 
     bool eraseDangerousAttributesIfInjected(HTMLToken&);
-    bool eraseAttributeIfInjected(HTMLToken&, const QualifiedName&, const String& replacementValue = String());
+    bool eraseAttributeIfInjected(HTMLToken&, const QualifiedName&, const String& replacementValue = String(), AttributeKind treatment = NormalAttribute);
 
     String snippetForRange(const HTMLToken&, int start, int end);
     String snippetForJavaScript(const String&);
-    String decodedSnippetForAttribute(const HTMLToken&, const HTMLToken::Attribute&);
+    String decodedSnippetForAttribute(const HTMLToken&, const HTMLToken::Attribute&, AttributeKind treatment = NormalAttribute);
 
     bool isContainedInRequest(const String&);
     bool isSameOriginResource(const String& url);
@@ -83,6 +88,7 @@ private:
 
     State m_state;
     String m_cachedSnippet;
+    bool m_notifiedClient;
 };
 
 }