<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[181781] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/181781">181781</a></dd>
<dt>Author</dt> <dd>aestes@apple.com</dd>
<dt>Date</dt> <dd>2015-03-19 22:22:22 -0700 (Thu, 19 Mar 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[Content Filtering] Move ContentFilter to from platform/ to loader/
https://bugs.webkit.org/show_bug.cgi?id=142897

Reviewed by Dan Bernstein.

ContentFilterCollection never contained any platform code, so it doesn't make sense for it to be in platform.
Move it to loader/, since ContentFilters are owned by DocumentLoaders, and just call it ContentFilter. Extract
the abstract part of ContentFilter into a new base class called PlatformContentFilter that each of the
individual filters inherit from.

* WebCore.xcodeproj/project.pbxproj:
* loader/ContentFilter.cpp: Renamed from Source/WebCore/platform/ContentFilter.cpp.
(WebCore::ContentFilter::types): Moved from ContentFilterCollection.
(WebCore::ContentFilter::createIfNeeded): Ditto.
(WebCore::ContentFilter::ContentFilter): Ditto.
(WebCore::ContentFilter::addData): Ditto.
(WebCore::ContentFilter::finishedAddingData): Ditto.
(WebCore::ContentFilter::needsMoreData): Ditto.
(WebCore::ContentFilter::didBlockData): Ditto.
(WebCore::ContentFilter::getReplacementData): Ditto.
(WebCore::ContentFilter::unblockHandler): Ditto.
* loader/ContentFilter.h: Copied from Source/WebCore/platform/ContentFilter.h.
(WebCore::ContentFilter::type): Replaced a use of ContentFilterCollection.
* platform/PlatformContentFilter.h: Renamed from Source/WebCore/platform/ContentFilter.h.
* platform/cocoa/NetworkExtensionContentFilter.h: Inherited from PlatformContentFilter.
* platform/cocoa/ParentalControlsContentFilter.h: Ditto.
* testing/MockContentFilter.h: Ditto.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCoreplatformcocoaNetworkExtensionContentFilterh">trunk/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.h</a></li>
<li><a href="#trunkSourceWebCoreplatformcocoaParentalControlsContentFilterh">trunk/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.h</a></li>
<li><a href="#trunkSourceWebCoretestingMockContentFiltercpp">trunk/Source/WebCore/testing/MockContentFilter.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingMockContentFilterh">trunk/Source/WebCore/testing/MockContentFilter.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreloaderContentFiltercpp">trunk/Source/WebCore/loader/ContentFilter.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderContentFilterh">trunk/Source/WebCore/loader/ContentFilter.h</a></li>
<li><a href="#trunkSourceWebCoreplatformPlatformContentFilterh">trunk/Source/WebCore/platform/PlatformContentFilter.h</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreplatformContentFiltercpp">trunk/Source/WebCore/platform/ContentFilter.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformContentFilterh">trunk/Source/WebCore/platform/ContentFilter.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (181780 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-03-20 05:06:40 UTC (rev 181780)
+++ trunk/Source/WebCore/ChangeLog        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -1,3 +1,33 @@
</span><ins>+2015-03-19  Andy Estes  &lt;aestes@apple.com&gt;
+
+        [Content Filtering] Move ContentFilter to from platform/ to loader/
+        https://bugs.webkit.org/show_bug.cgi?id=142897
+
+        Reviewed by Dan Bernstein.
+
+        ContentFilterCollection never contained any platform code, so it doesn't make sense for it to be in platform.
+        Move it to loader/, since ContentFilters are owned by DocumentLoaders, and just call it ContentFilter. Extract
+        the abstract part of ContentFilter into a new base class called PlatformContentFilter that each of the
+        individual filters inherit from.
+
+        * WebCore.xcodeproj/project.pbxproj:
+        * loader/ContentFilter.cpp: Renamed from Source/WebCore/platform/ContentFilter.cpp.
+        (WebCore::ContentFilter::types): Moved from ContentFilterCollection.
+        (WebCore::ContentFilter::createIfNeeded): Ditto.
+        (WebCore::ContentFilter::ContentFilter): Ditto.
+        (WebCore::ContentFilter::addData): Ditto.
+        (WebCore::ContentFilter::finishedAddingData): Ditto.
+        (WebCore::ContentFilter::needsMoreData): Ditto.
+        (WebCore::ContentFilter::didBlockData): Ditto.
+        (WebCore::ContentFilter::getReplacementData): Ditto.
+        (WebCore::ContentFilter::unblockHandler): Ditto.
+        * loader/ContentFilter.h: Copied from Source/WebCore/platform/ContentFilter.h.
+        (WebCore::ContentFilter::type): Replaced a use of ContentFilterCollection.
+        * platform/PlatformContentFilter.h: Renamed from Source/WebCore/platform/ContentFilter.h.
+        * platform/cocoa/NetworkExtensionContentFilter.h: Inherited from PlatformContentFilter.
+        * platform/cocoa/ParentalControlsContentFilter.h: Ditto.
+        * testing/MockContentFilter.h: Ditto.
+
</ins><span class="cx"> 2015-03-19  Dean Jackson  &lt;dino@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         CSS Animations with triggers should map scroll position to duration
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (181780 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2015-03-20 05:06:40 UTC (rev 181780)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -1045,7 +1045,6 @@
</span><span class="cx">                 2917B5621473496C0052C9D0 /* LayerFlushScheduler.h in Headers */ = {isa = PBXBuildFile; fileRef = 2917B55F1473496C0052C9D0 /* LayerFlushScheduler.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 2917B5631473496C0052C9D0 /* LayerFlushSchedulerClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 2917B5601473496C0052C9D0 /* LayerFlushSchedulerClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 2917B566147349950052C9D0 /* LayerFlushSchedulerMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2917B565147349950052C9D0 /* LayerFlushSchedulerMac.cpp */; };
</span><del>-                2919A1E916B3376600787213 /* ContentFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = 2919A1E816B3376600787213 /* ContentFilter.h */; };
</del><span class="cx">                 2934940A16C02C0700901318 /* PlatformSpeechSynthesisVoice.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2527CC9316BF92EC009DDAC0 /* PlatformSpeechSynthesisVoice.cpp */; };
</span><span class="cx">                 2934940B16C02C0A00901318 /* PlatformSpeechSynthesisUtterance.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2527CC9516BF95DD009DDAC0 /* PlatformSpeechSynthesisUtterance.cpp */; };
</span><span class="cx">                 293EAE1F1356B2FE0067ACF9 /* RuntimeApplicationChecks.h in Headers */ = {isa = PBXBuildFile; fileRef = 293EAE1E1356B2FE0067ACF9 /* RuntimeApplicationChecks.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -3819,7 +3818,9 @@
</span><span class="cx">                 A14832CD187F682E00DA63A6 /* WebCoreThreadSafe.h in Headers */ = {isa = PBXBuildFile; fileRef = A148329F187F508700DA63A6 /* WebCoreThreadSafe.h */; };
</span><span class="cx">                 A14832CE187F683400DA63A6 /* WebCoreThreadSystemInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A14832A0187F508700DA63A6 /* WebCoreThreadSystemInterface.cpp */; };
</span><span class="cx">                 A14832CF187F684700DA63A6 /* WebCoreThreadSystemInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = A14832A1187F508700DA63A6 /* WebCoreThreadSystemInterface.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                A15D329D1AA7CF3B009A234A /* ContentFilter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A15D329C1AA7CF3B009A234A /* ContentFilter.cpp */; };
</del><ins>+                A149786E1ABAF33800CEF7E4 /* ContentFilter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A149786C1ABAF33800CEF7E4 /* ContentFilter.cpp */; };
+                A149786F1ABAF33800CEF7E4 /* ContentFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = A149786D1ABAF33800CEF7E4 /* ContentFilter.h */; };
+                A14978711ABAF3A500CEF7E4 /* PlatformContentFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = A14978701ABAF3A500CEF7E4 /* PlatformContentFilter.h */; };
</ins><span class="cx">                 A17C81220F2A5CF7005DAAEB /* HTMLElementFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A17C81200F2A5CF7005DAAEB /* HTMLElementFactory.cpp */; };
</span><span class="cx">                 A17C81230F2A5CF7005DAAEB /* HTMLElementFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = A17C81210F2A5CF7005DAAEB /* HTMLElementFactory.h */; };
</span><span class="cx">                 A18890AE1AA13F250026C301 /* ParentalControlsContentFilter.mm in Sources */ = {isa = PBXBuildFile; fileRef = A18890AC1AA13F250026C301 /* ParentalControlsContentFilter.mm */; };
</span><span class="lines">@@ -8124,7 +8125,6 @@
</span><span class="cx">                 2917B55F1473496C0052C9D0 /* LayerFlushScheduler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LayerFlushScheduler.h; path = ca/LayerFlushScheduler.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2917B5601473496C0052C9D0 /* LayerFlushSchedulerClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LayerFlushSchedulerClient.h; path = ca/LayerFlushSchedulerClient.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2917B565147349950052C9D0 /* LayerFlushSchedulerMac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LayerFlushSchedulerMac.cpp; path = ca/mac/LayerFlushSchedulerMac.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                2919A1E816B3376600787213 /* ContentFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ContentFilter.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 293EAE1E1356B2FE0067ACF9 /* RuntimeApplicationChecks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RuntimeApplicationChecks.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 293EAE201356B32E0067ACF9 /* RuntimeApplicationChecks.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RuntimeApplicationChecks.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 29489FC512C00F0300D83F0F /* AccessibilityScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccessibilityScrollView.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -11076,7 +11076,9 @@
</span><span class="cx">                 A14832A9187F508700DA63A6 /* WKView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WKView.h; path = ios/wak/WKView.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A14832AA187F508700DA63A6 /* WKView.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WKView.mm; path = ios/wak/WKView.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A14832AB187F508700DA63A6 /* WKViewPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WKViewPrivate.h; path = ios/wak/WKViewPrivate.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                A15D329C1AA7CF3B009A234A /* ContentFilter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ContentFilter.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><ins>+                A149786C1ABAF33800CEF7E4 /* ContentFilter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ContentFilter.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
+                A149786D1ABAF33800CEF7E4 /* ContentFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ContentFilter.h; sourceTree = &quot;&lt;group&gt;&quot;; };
+                A14978701ABAF3A500CEF7E4 /* PlatformContentFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlatformContentFilter.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 A17C81200F2A5CF7005DAAEB /* HTMLElementFactory.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLElementFactory.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A17C81210F2A5CF7005DAAEB /* HTMLElementFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLElementFactory.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A18890AC1AA13F250026C301 /* ParentalControlsContentFilter.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ParentalControlsContentFilter.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -21415,6 +21417,8 @@
</span><span class="cx">                                 7E4DE10B198B10810051CB02 /* cocoa */,
</span><span class="cx">                                 5126E6B60A2E3AEF005C29FA /* icon */,
</span><span class="cx">                                 93A1EAA20A5634D8006960A0 /* mac */,
</span><ins>+                                A149786C1ABAF33800CEF7E4 /* ContentFilter.cpp */,
+                                A149786D1ABAF33800CEF7E4 /* ContentFilter.h */,
</ins><span class="cx">                                 E1424C91164B52C800F32D40 /* CookieJar.cpp */,
</span><span class="cx">                                 E1424C92164B52C800F32D40 /* CookieJar.h */,
</span><span class="cx">                                 E1C416160F6563180092D2FB /* CrossOriginAccessControl.cpp */,
</span><span class="lines">@@ -21574,8 +21578,6 @@
</span><span class="cx">                                 C330A22113EC196B0000B45B /* ColorChooser.h */,
</span><span class="cx">                                 C37CDEBC149EF2030042090D /* ColorChooserClient.h */,
</span><span class="cx">                                 BCC8CFCA0986CD2400140BF2 /* ColorData.gperf */,
</span><del>-                                A15D329C1AA7CF3B009A234A /* ContentFilter.cpp */,
-                                2919A1E816B3376600787213 /* ContentFilter.h */,
</del><span class="cx">                                 A14090FC1AA51E480091191A /* ContentFilterUnblockHandler.h */,
</span><span class="cx">                                 41D015C90F4B5C71004A662F /* ContentType.cpp */,
</span><span class="cx">                                 41D015C80F4B5C71004A662F /* ContentType.h */,
</span><span class="lines">@@ -21642,6 +21644,7 @@
</span><span class="cx">                                 98EB1F941313FE0500D0E1EA /* NotImplemented.h */,
</span><span class="cx">                                 4B2708C50AF19EE40065127F /* Pasteboard.h */,
</span><span class="cx">                                 C5F765B414E1D414006C899B /* PasteboardStrategy.h */,
</span><ins>+                                A14978701ABAF3A500CEF7E4 /* PlatformContentFilter.h */,
</ins><span class="cx">                                 E1424C89164B3B4E00F32D40 /* PlatformCookieJar.h */,
</span><span class="cx">                                 BC5C76291497FE1400BC4775 /* PlatformEvent.h */,
</span><span class="cx">                                 A723F77A1484CA4C008C6DBE /* PlatformExportMacros.h */,
</span><span class="lines">@@ -23851,7 +23854,6 @@
</span><span class="cx">                                 E1A1470811102B1500EEC0F3 /* ContainerNodeAlgorithms.h in Headers */,
</span><span class="cx">                                 BC5EB9810E82072500B25965 /* ContentData.h in Headers */,
</span><span class="cx">                                 57B791A414C6A62900F202D1 /* ContentDistributor.h in Headers */,
</span><del>-                                2919A1E916B3376600787213 /* ContentFilter.h in Headers */,
</del><span class="cx">                                 97C471DC12F925BD0086354B /* ContentSecurityPolicy.h in Headers */,
</span><span class="cx">                                 41D015CA0F4B5C71004A662F /* ContentType.h in Headers */,
</span><span class="cx">                                 97627B8E14FB3CEE002CDCA1 /* ContextDestructionObserver.h in Headers */,
</span><span class="lines">@@ -25699,6 +25701,7 @@
</span><span class="cx">                                 52F10866162B6DA8009AC81E /* MixedContentChecker.h in Headers */,
</span><span class="cx">                                 CE1252491A16C3BC00864480 /* MobileGestaltSPI.h in Headers */,
</span><span class="cx">                                 CDF2B0111820540600F2B424 /* MockBox.h in Headers */,
</span><ins>+                                A14978711ABAF3A500CEF7E4 /* PlatformContentFilter.h in Headers */,
</ins><span class="cx">                                 CDF2B0131820540600F2B424 /* MockMediaPlayerMediaSource.h in Headers */,
</span><span class="cx">                                 CDF2B0151820540600F2B424 /* MockMediaSourcePrivate.h in Headers */,
</span><span class="cx">                                 CDF2B0171820540700F2B424 /* MockSourceBufferPrivate.h in Headers */,
</span><span class="lines">@@ -25930,6 +25933,7 @@
</span><span class="cx">                                 550A0BCA085F6039007353D6 /* QualifiedName.h in Headers */,
</span><span class="cx">                                 CE12523D1A1676CD00864480 /* QuartzCoreSPI.h in Headers */,
</span><span class="cx">                                 442AF7A9102CDDEA008FD4D3 /* QuickLook.h in Headers */,
</span><ins>+                                A149786F1ABAF33800CEF7E4 /* ContentFilter.h in Headers */,
</ins><span class="cx">                                 CE1252391A166FA000864480 /* QuickLookSPI.h in Headers */,
</span><span class="cx">                                 A10DBF4718F92317000D70C6 /* QuickLookHandleClient.h in Headers */,
</span><span class="cx">                                 072AE1E8183C0741000A5988 /* QuickTimePluginReplacement.h in Headers */,
</span><span class="lines">@@ -27724,6 +27728,7 @@
</span><span class="cx">                                 F55B3DB71251F12D003EF269 /* DateTimeInputType.cpp in Sources */,
</span><span class="cx">                                 F55B3DB91251F12D003EF269 /* DateTimeLocalInputType.cpp in Sources */,
</span><span class="cx">                                 0F6A12BD1A00923700C6DE72 /* DebugPageOverlays.cpp in Sources */,
</span><ins>+                                A149786E1ABAF33800CEF7E4 /* ContentFilter.cpp in Sources */,
</ins><span class="cx">                                 45FEA5CF156DDE8C00654101 /* Decimal.cpp in Sources */,
</span><span class="cx">                                 A8C228A211D5722E00D5A7D3 /* DecodedDataDocumentParser.cpp in Sources */,
</span><span class="cx">                                 4162A450101145AE00DFF3ED /* DedicatedWorkerGlobalScope.cpp in Sources */,
</span><span class="lines">@@ -29190,7 +29195,6 @@
</span><span class="cx">                                 CDB859F7160D48A400E5B07F /* MediaKeyEvent.cpp in Sources */,
</span><span class="cx">                                 CDA98DD816025BEF00FEA3B1 /* MediaKeyMessageEvent.cpp in Sources */,
</span><span class="cx">                                 CD1B4A65160786AE00282DF9 /* MediaKeyNeededEvent.cpp in Sources */,
</span><del>-                                A15D329D1AA7CF3B009A234A /* ContentFilter.cpp in Sources */,
</del><span class="cx">                                 6C568CB019DAFEA000430CA2 /* MaskImageOperation.cpp in Sources */,
</span><span class="cx">                                 CDA98E0D1603FE4A00FEA3B1 /* MediaKeys.cpp in Sources */,
</span><span class="cx">                                 7C93F34D1AA6BF0700A98BAB /* ContentExtensionCompiler.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderContentFiltercppfromrev181780trunkSourceWebCoreplatformContentFiltercpp"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/loader/ContentFilter.cpp (from rev 181780, trunk/Source/WebCore/platform/ContentFilter.cpp) (0 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/ContentFilter.cpp                                (rev 0)
+++ trunk/Source/WebCore/loader/ContentFilter.cpp        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -0,0 +1,135 @@
</span><ins>+/*
+ * Copyright (C) 2013 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include &quot;config.h&quot;
+#include &quot;ContentFilter.h&quot;
+
+#if ENABLE(CONTENT_FILTERING)
+
+#include &quot;NetworkExtensionContentFilter.h&quot;
+#include &quot;ParentalControlsContentFilter.h&quot;
+#include &lt;wtf/NeverDestroyed.h&gt;
+
+namespace WebCore {
+
+Vector&lt;ContentFilter::Type&gt;&amp; ContentFilter::types()
+{
+    static NeverDestroyed&lt;Vector&lt;ContentFilter::Type&gt;&gt; types {
+        Vector&lt;ContentFilter::Type&gt; {
+            type&lt;ParentalControlsContentFilter&gt;(),
+#if HAVE(NETWORK_EXTENSION)
+            type&lt;NetworkExtensionContentFilter&gt;()
+#endif
+        }
+    };
+    return types;
+}
+
+std::unique_ptr&lt;ContentFilter&gt; ContentFilter::createIfNeeded(const ResourceResponse&amp; response)
+{
+    Container filters;
+    for (auto&amp; type : types()) {
+        if (type.canHandleResponse(response))
+            filters.append(type.create(response));
+    }
+
+    if (filters.isEmpty())
+        return nullptr;
+
+    return std::make_unique&lt;ContentFilter&gt;(WTF::move(filters));
+}
+
+ContentFilter::ContentFilter(Container contentFilters)
+    : m_contentFilters { WTF::move(contentFilters) }
+{
+    ASSERT(!m_contentFilters.isEmpty());
+}
+
+void ContentFilter::addData(const char* data, int length)
+{
+    ASSERT(needsMoreData());
+
+    for (auto&amp; contentFilter : m_contentFilters)
+        contentFilter-&gt;addData(data, length);
+}
+    
+void ContentFilter::finishedAddingData()
+{
+    ASSERT(needsMoreData());
+
+    for (auto&amp; contentFilter : m_contentFilters)
+        contentFilter-&gt;finishedAddingData();
+
+    ASSERT(!needsMoreData());
+}
+
+bool ContentFilter::needsMoreData() const
+{
+    for (auto&amp; contentFilter : m_contentFilters) {
+        if (contentFilter-&gt;needsMoreData())
+            return true;
+    }
+
+    return false;
+}
+
+bool ContentFilter::didBlockData() const
+{
+    for (auto&amp; contentFilter : m_contentFilters) {
+        if (contentFilter-&gt;didBlockData())
+            return true;
+    }
+
+    return false;
+}
+
+const char* ContentFilter::getReplacementData(int&amp; length) const
+{
+    ASSERT(!needsMoreData());
+
+    for (auto&amp; contentFilter : m_contentFilters) {
+        if (contentFilter-&gt;didBlockData())
+            return contentFilter-&gt;getReplacementData(length);
+    }
+
+    return m_contentFilters[0]-&gt;getReplacementData(length);
+}
+
+ContentFilterUnblockHandler ContentFilter::unblockHandler() const
+{
+    ASSERT(didBlockData());
+
+    for (auto&amp; contentFilter : m_contentFilters) {
+        if (contentFilter-&gt;didBlockData())
+            return contentFilter-&gt;unblockHandler();
+    }
+
+    ASSERT_NOT_REACHED();
+    return { };
+}
+
+} // namespace WebCore
+
+#endif // ENABLE(CONTENT_FILTERING)
</ins></span></pre></div>
<a id="trunkSourceWebCoreloaderContentFilterhfromrev181780trunkSourceWebCoreplatformContentFilterh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/loader/ContentFilter.h (from rev 181780, trunk/Source/WebCore/platform/ContentFilter.h) (0 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/ContentFilter.h                                (rev 0)
+++ trunk/Source/WebCore/loader/ContentFilter.h        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -0,0 +1,76 @@
</span><ins>+/*
+ * Copyright (C) 2013 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef ContentFilter_h
+#define ContentFilter_h
+
+#if ENABLE(CONTENT_FILTERING)
+
+#include &quot;PlatformContentFilter.h&quot;
+#include &lt;wtf/Vector.h&gt;
+
+namespace WebCore {
+
+class ResourceResponse;
+
+class ContentFilter final : public PlatformContentFilter {
+public:
+    template &lt;typename T&gt; static void addType() { types().append(type&lt;T&gt;()); }
+    static std::unique_ptr&lt;ContentFilter&gt; createIfNeeded(const ResourceResponse&amp;);
+
+    void addData(const char* data, int length) override;
+    void finishedAddingData() override;
+    bool needsMoreData() const override;
+    bool didBlockData() const override;
+    const char* getReplacementData(int&amp; length) const override;
+    ContentFilterUnblockHandler unblockHandler() const override;
+
+private:
+    struct Type {
+        const std::function&lt;bool(const ResourceResponse&amp;)&gt; canHandleResponse;
+        const std::function&lt;std::unique_ptr&lt;PlatformContentFilter&gt;(const ResourceResponse&amp;)&gt; create;
+    };
+    template &lt;typename T&gt; static Type type();
+    WEBCORE_EXPORT static Vector&lt;Type&gt;&amp; types();
+
+    using Container = Vector&lt;std::unique_ptr&lt;PlatformContentFilter&gt;&gt;;
+    friend std::unique_ptr&lt;ContentFilter&gt; std::make_unique&lt;ContentFilter&gt;(Container&amp;&amp;);
+    explicit ContentFilter(Container);
+
+    Container m_contentFilters;
+};
+
+template &lt;typename T&gt;
+ContentFilter::Type ContentFilter::type()
+{
+    static_assert(std::is_base_of&lt;PlatformContentFilter, T&gt;::value, &quot;Type must be a PlatformContentFilter.&quot;);
+    return { T::canHandleResponse, T::create };
+}
+
+} // namespace WebCore
+
+#endif // ENABLE(CONTENT_FILTERING)
+
+#endif // ContentFilter_h
</ins></span></pre></div>
<a id="trunkSourceWebCoreplatformContentFiltercpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/ContentFilter.cpp (181780 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ContentFilter.cpp        2015-03-20 05:06:40 UTC (rev 181780)
+++ trunk/Source/WebCore/platform/ContentFilter.cpp        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -1,153 +0,0 @@
</span><del>-/*
- * Copyright (C) 2013 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;config.h&quot;
-#include &quot;ContentFilter.h&quot;
-
-#if ENABLE(CONTENT_FILTERING)
-
-#include &quot;NetworkExtensionContentFilter.h&quot;
-#include &quot;ParentalControlsContentFilter.h&quot;
-#include &lt;wtf/NeverDestroyed.h&gt;
-#include &lt;wtf/Vector.h&gt;
-
-namespace WebCore {
-
-Vector&lt;ContentFilter::Type&gt;&amp; ContentFilter::types()
-{
-    static NeverDestroyed&lt;Vector&lt;ContentFilter::Type&gt;&gt; types {
-        Vector&lt;ContentFilter::Type&gt; {
-            type&lt;ParentalControlsContentFilter&gt;(),
-#if HAVE(NETWORK_EXTENSION)
-            type&lt;NetworkExtensionContentFilter&gt;()
-#endif
-        }
-    };
-    return types;
-}
-
-class ContentFilterCollection final : public ContentFilter {
-public:
-    using Container = Vector&lt;std::unique_ptr&lt;ContentFilter&gt;&gt;;
-
-    explicit ContentFilterCollection(Container);
-
-    void addData(const char* data, int length) override;
-    void finishedAddingData() override;
-    bool needsMoreData() const override;
-    bool didBlockData() const override;
-    const char* getReplacementData(int&amp; length) const override;
-    ContentFilterUnblockHandler unblockHandler() const override;
-
-private:
-    Container m_contentFilters;
-};
-
-std::unique_ptr&lt;ContentFilter&gt; ContentFilter::createIfNeeded(const ResourceResponse&amp; response)
-{
-    ContentFilterCollection::Container filters;
-    for (auto&amp; type : types()) {
-        if (type.canHandleResponse(response))
-            filters.append(type.create(response));
-    }
-
-    if (filters.isEmpty())
-        return nullptr;
-
-    return std::make_unique&lt;ContentFilterCollection&gt;(WTF::move(filters));
-}
-
-ContentFilterCollection::ContentFilterCollection(Container contentFilters)
-    : m_contentFilters { WTF::move(contentFilters) }
-{
-    ASSERT(!m_contentFilters.isEmpty());
-}
-
-void ContentFilterCollection::addData(const char* data, int length)
-{
-    ASSERT(needsMoreData());
-
-    for (auto&amp; contentFilter : m_contentFilters)
-        contentFilter-&gt;addData(data, length);
-}
-    
-void ContentFilterCollection::finishedAddingData()
-{
-    ASSERT(needsMoreData());
-
-    for (auto&amp; contentFilter : m_contentFilters)
-        contentFilter-&gt;finishedAddingData();
-
-    ASSERT(!needsMoreData());
-}
-
-bool ContentFilterCollection::needsMoreData() const
-{
-    for (auto&amp; contentFilter : m_contentFilters) {
-        if (contentFilter-&gt;needsMoreData())
-            return true;
-    }
-
-    return false;
-}
-
-bool ContentFilterCollection::didBlockData() const
-{
-    for (auto&amp; contentFilter : m_contentFilters) {
-        if (contentFilter-&gt;didBlockData())
-            return true;
-    }
-
-    return false;
-}
-
-const char* ContentFilterCollection::getReplacementData(int&amp; length) const
-{
-    ASSERT(!needsMoreData());
-
-    for (auto&amp; contentFilter : m_contentFilters) {
-        if (contentFilter-&gt;didBlockData())
-            return contentFilter-&gt;getReplacementData(length);
-    }
-
-    return m_contentFilters[0]-&gt;getReplacementData(length);
-}
-
-ContentFilterUnblockHandler ContentFilterCollection::unblockHandler() const
-{
-    ASSERT(didBlockData());
-
-    for (auto&amp; contentFilter : m_contentFilters) {
-        if (contentFilter-&gt;didBlockData())
-            return contentFilter-&gt;unblockHandler();
-    }
-
-    ASSERT_NOT_REACHED();
-    return { };
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(CONTENT_FILTERING)
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformContentFilterh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/ContentFilter.h (181780 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ContentFilter.h        2015-03-20 05:06:40 UTC (rev 181780)
+++ trunk/Source/WebCore/platform/ContentFilter.h        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -1,65 +0,0 @@
</span><del>-/*
- * Copyright (C) 2013 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef ContentFilter_h
-#define ContentFilter_h
-
-#if ENABLE(CONTENT_FILTERING)
-
-#include &quot;ContentFilterUnblockHandler.h&quot;
-#include &lt;wtf/Vector.h&gt;
-
-namespace WebCore {
-
-class ResourceResponse;
-
-class ContentFilter {
-public:
-    template &lt;typename T&gt; static void addType() { types().append(type&lt;T&gt;()); }
-
-    static std::unique_ptr&lt;ContentFilter&gt; createIfNeeded(const ResourceResponse&amp;);
-
-    virtual ~ContentFilter() { }
-    virtual void addData(const char* data, int length) = 0;
-    virtual void finishedAddingData() = 0;
-    virtual bool needsMoreData() const = 0;
-    virtual bool didBlockData() const = 0;
-    virtual const char* getReplacementData(int&amp; length) const = 0;
-    virtual ContentFilterUnblockHandler unblockHandler() const = 0;
-
-private:
-    struct Type {
-        const std::function&lt;bool(const ResourceResponse&amp;)&gt; canHandleResponse;
-        const std::function&lt;std::unique_ptr&lt;ContentFilter&gt;(const ResourceResponse&amp;)&gt; create;
-    };
-    template &lt;typename T&gt; static Type type() { return { T::canHandleResponse, T::create }; }
-    WEBCORE_EXPORT static Vector&lt;Type&gt;&amp; types();
-};
-
-} // namespace WebCore
-
-#endif // ENABLE(CONTENT_FILTERING)
-
-#endif // ContentFilter_h
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformPlatformContentFilterhfromrev181780trunkSourceWebCoreplatformContentFilterh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/platform/PlatformContentFilter.h (from rev 181780, trunk/Source/WebCore/platform/ContentFilter.h) (0 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/PlatformContentFilter.h                                (rev 0)
+++ trunk/Source/WebCore/platform/PlatformContentFilter.h        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+/*
+ * Copyright (C) 2015 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef PlatformContentFilter_h
+#define PlatformContentFilter_h
+
+#include &quot;ContentFilterUnblockHandler.h&quot;
+#include &lt;wtf/text/WTFString.h&gt;
+
+namespace WebCore {
+
+class ResourceResponse;
+
+class PlatformContentFilter {
+    WTF_MAKE_FAST_ALLOCATED;
+    WTF_MAKE_NONCOPYABLE(PlatformContentFilter);
+
+protected:
+    PlatformContentFilter() = default;
+
+public:
+    virtual ~PlatformContentFilter() { }
+    virtual void addData(const char* data, int length) = 0;
+    virtual void finishedAddingData() = 0;
+    virtual bool needsMoreData() const = 0;
+    virtual bool didBlockData() const = 0;
+    virtual const char* getReplacementData(int&amp; length) const = 0;
+    virtual ContentFilterUnblockHandler unblockHandler() const = 0;
+};
+
+} // namespace WebCore
+
+#endif // PlatformContentFilter_h
</ins></span></pre></div>
<a id="trunkSourceWebCoreplatformcocoaNetworkExtensionContentFilterh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.h (181780 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.h        2015-03-20 05:06:40 UTC (rev 181780)
+++ trunk/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.h        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx"> #ifndef NetworkExtensionContentFilter_h
</span><span class="cx"> #define NetworkExtensionContentFilter_h
</span><span class="cx"> 
</span><del>-#include &quot;ContentFilter.h&quot;
</del><ins>+#include &quot;PlatformContentFilter.h&quot;
</ins><span class="cx"> #include &quot;SharedBuffer.h&quot;
</span><span class="cx"> #include &lt;objc/NSObjCRuntime.h&gt;
</span><span class="cx"> #include &lt;wtf/Compiler.h&gt;
</span><span class="lines">@@ -45,9 +45,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-class NetworkExtensionContentFilter final : public ContentFilter {
-    WTF_MAKE_FAST_ALLOCATED;
-    WTF_MAKE_NONCOPYABLE(NetworkExtensionContentFilter);
</del><ins>+class NetworkExtensionContentFilter final : public PlatformContentFilter {
</ins><span class="cx">     friend std::unique_ptr&lt;NetworkExtensionContentFilter&gt; std::make_unique&lt;NetworkExtensionContentFilter&gt;(const ResourceResponse&amp;);
</span><span class="cx"> 
</span><span class="cx"> public:
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformcocoaParentalControlsContentFilterh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.h (181780 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.h        2015-03-20 05:06:40 UTC (rev 181780)
+++ trunk/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.h        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx"> #ifndef ParentalControlsContentFilter_h
</span><span class="cx"> #define ParentalControlsContentFilter_h
</span><span class="cx"> 
</span><del>-#include &quot;ContentFilter.h&quot;
</del><ins>+#include &quot;PlatformContentFilter.h&quot;
</ins><span class="cx"> #include &lt;wtf/Compiler.h&gt;
</span><span class="cx"> #include &lt;wtf/RetainPtr.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -35,9 +35,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-class ParentalControlsContentFilter final : public ContentFilter {
-    WTF_MAKE_FAST_ALLOCATED;
-    WTF_MAKE_NONCOPYABLE(ParentalControlsContentFilter);
</del><ins>+class ParentalControlsContentFilter final : public PlatformContentFilter {
</ins><span class="cx">     friend std::unique_ptr&lt;ParentalControlsContentFilter&gt; std::make_unique&lt;ParentalControlsContentFilter&gt;(const ResourceResponse&amp;);
</span><span class="cx"> 
</span><span class="cx"> public:
</span></span></pre></div>
<a id="trunkSourceWebCoretestingMockContentFiltercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/MockContentFilter.cpp (181780 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/MockContentFilter.cpp        2015-03-20 05:06:40 UTC (rev 181780)
+++ trunk/Source/WebCore/testing/MockContentFilter.cpp        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CONTENT_FILTERING)
</span><span class="cx"> 
</span><ins>+#include &quot;ContentFilter.h&quot;
</ins><span class="cx"> #include &lt;mutex&gt;
</span><span class="cx"> #include &lt;wtf/text/CString.h&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoretestingMockContentFilterh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/MockContentFilter.h (181780 => 181781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/MockContentFilter.h        2015-03-20 05:06:40 UTC (rev 181780)
+++ trunk/Source/WebCore/testing/MockContentFilter.h        2015-03-20 05:22:22 UTC (rev 181781)
</span><span class="lines">@@ -26,14 +26,12 @@
</span><span class="cx"> #ifndef MockContentFilter_h
</span><span class="cx"> #define MockContentFilter_h
</span><span class="cx"> 
</span><del>-#include &quot;ContentFilter.h&quot;
</del><span class="cx"> #include &quot;MockContentFilterSettings.h&quot;
</span><ins>+#include &quot;PlatformContentFilter.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-class MockContentFilter final : public ContentFilter {
-    WTF_MAKE_FAST_ALLOCATED;
-    WTF_MAKE_NONCOPYABLE(MockContentFilter);
</del><ins>+class MockContentFilter final : public PlatformContentFilter {
</ins><span class="cx">     friend std::unique_ptr&lt;MockContentFilter&gt; std::make_unique&lt;MockContentFilter&gt;(const ResourceResponse&amp;);
</span><span class="cx"> 
</span><span class="cx"> public:
</span></span></pre>
</div>
</div>

</body>
</html>