<!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>[177455] trunk/Source</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/177455">177455</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2014-12-17 13:03:51 -0800 (Wed, 17 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>[iOS] Make it possible to toggle FeatureCounter support at runtime
https://bugs.webkit.org/show_bug.cgi?id=139688
&lt;rdar://problem/19266254&gt;

Reviewed by Andreas Kling.

Source/JavaScriptCore:

Stop linking against AppSupport framework as the functionality is no
longer in WTF (it was moved to WebCore).

* Configurations/JavaScriptCore.xcconfig:

Source/WebCore:

Make it possible to toggle FeatureCounter support at runtime by adding
a setting (disabled by default) and moving the API to a new
FeatureCounter class under WebCore/plattorm which only logs if the
setting is enabled. For privacy reasons, FeatureCounter logging is also
disabled for private / ephemeral sessions.

No new tests, no behavior change.

* CMakeLists.txt:
* Configurations/WebCore.xcconfig:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* history/PageCache.cpp:
(WebCore::logCanCacheFrameDecision):
(WebCore::logCanCachePageDecision):
* page/Settings.in:
* platform/FeatureCounter.cpp: Renamed from Source/WTF/wtf/FeatureCounter.cpp.
(WebCore::FeatureCounter::shouldUseForPage):
(WebCore::FeatureCounter::incrementKey):
(WebCore::FeatureCounter::setKey):
* platform/FeatureCounter.h: Renamed from Source/WTF/wtf/FeatureCounter.h.
* platform/FeatureCounterKeys.h:
* platform/ios/FeatureCounter.mm: Renamed from Source/WTF/wtf/ios/FeatureCounter.mm.
(WebCore::FeatureCounter::incrementKey):
(WebCore::FeatureCounter::setKey):

Source/WebKit2:

Add private settings API to toggle FeatureCounter support on Safari and
MobileSafari.

* Shared/WebPreferencesDefinitions.h:
* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetFeatureCounterEnabled):
(WKPreferencesGetFeatureCounterEnabled):
* UIProcess/API/C/WKPreferencesRefPrivate.h:
* UIProcess/API/Cocoa/WKPreferences.mm:
(-[WKPreferences _featureCounterEnabled]):
(-[WKPreferences _setFeatureCounterEnabled:]):
* UIProcess/API/Cocoa/WKPreferencesPrivate.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):

Source/WTF:

Remove FeatureCounter API from WTF and move it to WebCore/platform
instead so that it can log conditionally based on a WebCore setting.

* WTF.vcxproj/WTF.vcxproj:
* WTF.xcodeproj/project.pbxproj:
* wtf/CMakeLists.txt:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreConfigurationsJavaScriptCorexcconfig">trunk/Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig</a></li>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFWTFvcxprojWTFvcxproj">trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj</a></li>
<li><a href="#trunkSourceWTFWTFxcodeprojprojectpbxproj">trunk/Source/WTF/WTF.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWTFwtfCMakeListstxt">trunk/Source/WTF/wtf/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreConfigurationsWebCorexcconfig">trunk/Source/WebCore/Configurations/WebCore.xcconfig</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxproj">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCorehistoryPageCachecpp">trunk/Source/WebCore/history/PageCache.cpp</a></li>
<li><a href="#trunkSourceWebCorepageSettingsin">trunk/Source/WebCore/page/Settings.in</a></li>
<li><a href="#trunkSourceWebCoreplatformFeatureCounterKeysh">trunk/Source/WebCore/platform/FeatureCounterKeys.h</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedWebPreferencesDefinitionsh">trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPreferencescpp">trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPreferencesRefPrivateh">trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKPreferencesmm">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKPreferencesPrivateh">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreplatformFeatureCountercpp">trunk/Source/WebCore/platform/FeatureCounter.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformFeatureCounterh">trunk/Source/WebCore/platform/FeatureCounter.h</a></li>
<li><a href="#trunkSourceWebCoreplatformiosFeatureCountermm">trunk/Source/WebCore/platform/ios/FeatureCounter.mm</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWTFwtfFeatureCountercpp">trunk/Source/WTF/wtf/FeatureCounter.cpp</a></li>
<li><a href="#trunkSourceWTFwtfFeatureCounterh">trunk/Source/WTF/wtf/FeatureCounter.h</a></li>
<li><a href="#trunkSourceWTFwtfiosFeatureCountermm">trunk/Source/WTF/wtf/ios/FeatureCounter.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/JavaScriptCore/ChangeLog        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2014-12-17  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        [iOS] Make it possible to toggle FeatureCounter support at runtime
+        https://bugs.webkit.org/show_bug.cgi?id=139688
+        &lt;rdar://problem/19266254&gt;
+
+        Reviewed by Andreas Kling.
+
+        Stop linking against AppSupport framework as the functionality is no
+        longer in WTF (it was moved to WebCore).
+
+        * Configurations/JavaScriptCore.xcconfig:
+
</ins><span class="cx"> 2014-12-17  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Win] Correct DebugSuffix builds under MSBuild
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreConfigurationsJavaScriptCorexcconfig"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx"> OTHER_LDFLAGS_HIDE_SYMBOLS = -Wl,-unexported_symbol -Wl,__ZTISt9bad_alloc -Wl,-unexported_symbol -Wl,__ZTISt9exception -Wl,-unexported_symbol -Wl,__ZTSSt9bad_alloc -Wl,-unexported_symbol -Wl,__ZTSSt9exception -Wl,-unexported_symbol -Wl,__ZdlPvS_ -Wl,-unexported_symbol -Wl,__ZnwmPv -Wl,-unexported_symbol -Wl,__ZNKSt3__18functionIFvvEEclEv -Wl,-unexported_symbol -Wl,__ZNSt3__18functionIFvvEEC1EOS2_ -Wl,-unexported_symbol -Wl,__ZNSt3__18functionIFvvEEC2EOS2_ -Wl,-unexported_symbol -Wl,__ZNKSt3__18functionIFvRN3JSC17BytecodeGeneratorEPNS1_10RegisterIDEEEclES3_S5_ -Wl,-unexported_symbol -Wl,__ZNSt3__18functionIFvRN3JSC17BytecodeGeneratorEPNS1_10RegisterIDEEED1Ev -Wl,-unexported_symbol -Wl,__ZNSt3__18functionIFvRN3JSC17BytecodeGeneratorEPNS1_10RegisterIDEEED2Ev -Wl,-unexported_symbol -Wl,__ZNSt3__18functionIFvvEED1Ev -Wl,-unexported_symbol -Wl,__ZNSt3__18functionIFvvEED2Ev -Wl,-unexported_symbol -Wl,__ZTVNSt3__117bad_function_callE -Wl,-all_load;
</span><span class="cx"> 
</span><span class="cx"> OTHER_LDFLAGS_BASE = -lobjc -Wl,-Y,3 $(OTHER_LDFLAGS_HIDE_SYMBOLS);
</span><del>-OTHER_LDFLAGS[sdk=iphone*] = $(inherited) $(OTHER_LDFLAGS_BASE) -framework AppSupport;
</del><ins>+OTHER_LDFLAGS[sdk=iphone*] = $(inherited) $(OTHER_LDFLAGS_BASE);
</ins><span class="cx"> OTHER_LDFLAGS[sdk=macosx*] = $(inherited) $(OTHER_LDFLAGS_BASE) -sub_library libobjc -framework CoreServices;
</span><span class="cx"> 
</span><span class="cx"> SECTORDER_FLAGS[sdk=iphoneos*] = $(SECTORDER_FLAGS_ios_$(CONFIGURATION));
</span></span></pre></div>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WTF/ChangeLog        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2014-12-17  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        [iOS] Make it possible to toggle FeatureCounter support at runtime
+        https://bugs.webkit.org/show_bug.cgi?id=139688
+        &lt;rdar://problem/19266254&gt;
+
+        Reviewed by Andreas Kling.
+
+        Remove FeatureCounter API from WTF and move it to WebCore/platform
+        instead so that it can log conditionally based on a WebCore setting.
+
+        * WTF.vcxproj/WTF.vcxproj:
+        * WTF.xcodeproj/project.pbxproj:
+        * wtf/CMakeLists.txt:
+
</ins><span class="cx"> 2014-12-17  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Win] Correct DebugSuffix builds under MSBuild
</span></span></pre></div>
<a id="trunkSourceWTFWTFvcxprojWTFvcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -72,7 +72,6 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;..\wtf\dtoa\strtod.cc&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\wtf\FastBitVector.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\wtf\FastMalloc.cpp&quot; /&gt;
</span><del>-    &lt;ClCompile Include=&quot;..\wtf\FeatureCounter.cpp&quot; /&gt;
</del><span class="cx">     &lt;ClCompile Include=&quot;..\wtf\FilePrintStream.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\wtf\FunctionDispatcher.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\wtf\gobject\GlibUtilities.cpp&quot;&gt;
</span><span class="lines">@@ -198,7 +197,6 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\dtoa\utils.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\FastBitVector.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\FastMalloc.h&quot; /&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\wtf\FeatureCounter.h&quot; /&gt;
</del><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\FeatureDefines.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\FilePrintStream.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\FlipBytes.h&quot; /&gt;
</span></span></pre></div>
<a id="trunkSourceWTFWTFxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.xcodeproj/project.pbxproj (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.xcodeproj/project.pbxproj        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WTF/WTF.xcodeproj/project.pbxproj        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -73,9 +73,6 @@
</span><span class="cx">                 2CDED0EF18115C38004DBA70 /* RunLoopCF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2CDED0EE18115C38004DBA70 /* RunLoopCF.cpp */; };
</span><span class="cx">                 2CDED0F318115C85004DBA70 /* RunLoop.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2CDED0F118115C85004DBA70 /* RunLoop.cpp */; };
</span><span class="cx">                 2CDED0F418115C85004DBA70 /* RunLoop.h in Headers */ = {isa = PBXBuildFile; fileRef = 2CDED0F218115C85004DBA70 /* RunLoop.h */; };
</span><del>-                463111841A3F729A00E925A3 /* FeatureCounter.h in Headers */ = {isa = PBXBuildFile; fileRef = 463111831A3F729A00E925A3 /* FeatureCounter.h */; };
-                463111861A3F72B800E925A3 /* FeatureCounter.mm in Sources */ = {isa = PBXBuildFile; fileRef = 463111851A3F72B800E925A3 /* FeatureCounter.mm */; };
-                463111881A3F899100E925A3 /* FeatureCounter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 463111871A3F899100E925A3 /* FeatureCounter.cpp */; };
</del><span class="cx">                 7CBBA07419BB7FDC00BBF025 /* OSObjectPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = 7CBBA07319BB7FDC00BBF025 /* OSObjectPtr.h */; };
</span><span class="cx">                 7CDD7FF8186D291E007433CD /* IteratorAdaptors.h in Headers */ = {isa = PBXBuildFile; fileRef = 7CDD7FF7186D291E007433CD /* IteratorAdaptors.h */; };
</span><span class="cx">                 7CDD7FFA186D2A54007433CD /* IteratorRange.h in Headers */ = {isa = PBXBuildFile; fileRef = 7CDD7FF9186D2A54007433CD /* IteratorRange.h */; };
</span><span class="lines">@@ -364,9 +361,6 @@
</span><span class="cx">                 2CDED0EE18115C38004DBA70 /* RunLoopCF.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RunLoopCF.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2CDED0F118115C85004DBA70 /* RunLoop.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RunLoop.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2CDED0F218115C85004DBA70 /* RunLoop.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RunLoop.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                463111831A3F729A00E925A3 /* FeatureCounter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FeatureCounter.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                463111851A3F72B800E925A3 /* FeatureCounter.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FeatureCounter.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
-                463111871A3F899100E925A3 /* FeatureCounter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FeatureCounter.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 5D247B6214689B8600E78B76 /* libWTF.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libWTF.a; sourceTree = BUILT_PRODUCTS_DIR; };
</span><span class="cx">                 5D247B6E14689C4700E78B76 /* Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 5D247B7014689C4700E78B76 /* DebugRelease.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = DebugRelease.xcconfig; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -622,7 +616,6 @@
</span><span class="cx">                 1FA47C87152502DA00568D1B /* ios */ = {
</span><span class="cx">                         isa = PBXGroup;
</span><span class="cx">                         children = (
</span><del>-                                463111851A3F72B800E925A3 /* FeatureCounter.mm */,
</del><span class="cx">                                 1FA47C88152502DA00568D1B /* WebCoreThread.cpp */,
</span><span class="cx">                                 1FA47C89152502DA00568D1B /* WebCoreThread.h */,
</span><span class="cx">                         );
</span><span class="lines">@@ -761,8 +754,6 @@
</span><span class="cx">                                 0FD81AC4154FB22E00983E72 /* FastBitVector.h */,
</span><span class="cx">                                 A8A472A1151A825A004123FF /* FastMalloc.cpp */,
</span><span class="cx">                                 A8A472A2151A825A004123FF /* FastMalloc.h */,
</span><del>-                                463111871A3F899100E925A3 /* FeatureCounter.cpp */,
-                                463111831A3F729A00E925A3 /* FeatureCounter.h */,
</del><span class="cx">                                 B38FD7BC168953E80065C969 /* FeatureDefines.h */,
</span><span class="cx">                                 0F9D335B165DBA73005AD387 /* FilePrintStream.cpp */,
</span><span class="cx">                                 0F9D335C165DBA73005AD387 /* FilePrintStream.h */,
</span><span class="lines">@@ -1187,7 +1178,6 @@
</span><span class="cx">                                 1AFDE648195201C300C48FFA /* TypeCastsCF.h in Headers */,
</span><span class="cx">                                 A8A47423151A825B004123FF /* SimpleStats.h in Headers */,
</span><span class="cx">                                 A8A47424151A825B004123FF /* SinglyLinkedList.h in Headers */,
</span><del>-                                463111841A3F729A00E925A3 /* FeatureCounter.h in Headers */,
</del><span class="cx">                                 A748745317A0BDAE00FA04CB /* SixCharacterHash.h in Headers */,
</span><span class="cx">                                 A8A47426151A825B004123FF /* Spectrum.h in Headers */,
</span><span class="cx">                                 A8A47428151A825B004123FF /* StackBounds.h in Headers */,
</span><span class="lines">@@ -1355,7 +1345,6 @@
</span><span class="cx">                                 86F46F601A2840EE00CCBF22 /* RefCounter.cpp in Sources */,
</span><span class="cx">                                 A8A4739E151A825B004123FF /* DataLog.cpp in Sources */,
</span><span class="cx">                                 A8A473A0151A825B004123FF /* DateMath.cpp in Sources */,
</span><del>-                                463111861A3F72B800E925A3 /* FeatureCounter.mm in Sources */,
</del><span class="cx">                                 A8A473A2151A825B004123FF /* DecimalNumber.cpp in Sources */,
</span><span class="cx">                                 A8A473AE151A825B004123FF /* diy-fp.cc in Sources */,
</span><span class="cx">                                 A8A473B0151A825B004123FF /* double-conversion.cc in Sources */,
</span><span class="lines">@@ -1376,7 +1365,6 @@
</span><span class="cx">                                 CD5497AC15857D0300B5BC30 /* MediaTime.cpp in Sources */,
</span><span class="cx">                                 A8A473EC151A825B004123FF /* MetaAllocator.cpp in Sources */,
</span><span class="cx">                                 A8A473F4151A825B004123FF /* NumberOfCores.cpp in Sources */,
</span><del>-                                463111881A3F899100E925A3 /* FeatureCounter.cpp in Sources */,
</del><span class="cx">                                 A8A473F7151A825B004123FF /* OSAllocatorPosix.cpp in Sources */,
</span><span class="cx">                                 93F1993E19D7958D00C2390B /* StringView.cpp in Sources */,
</span><span class="cx">                                 A8A473F9151A825B004123FF /* OSRandomSource.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWTFwtfCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/CMakeLists.txt (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/CMakeLists.txt        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WTF/wtf/CMakeLists.txt        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -24,7 +24,6 @@
</span><span class="cx">     DisallowCType.h
</span><span class="cx">     DoublyLinkedList.h
</span><span class="cx">     FastMalloc.h
</span><del>-    FeatureCounter.h
</del><span class="cx">     FeatureDefines.h
</span><span class="cx">     FilePrintStream.h
</span><span class="cx">     FlipBytes.h
</span><span class="lines">@@ -160,7 +159,6 @@
</span><span class="cx">     DecimalNumber.cpp
</span><span class="cx">     FastBitVector.cpp
</span><span class="cx">     FastMalloc.cpp
</span><del>-    FeatureCounter.cpp
</del><span class="cx">     FilePrintStream.cpp
</span><span class="cx">     FunctionDispatcher.cpp
</span><span class="cx">     GregorianDateTime.cpp
</span></span></pre></div>
<a id="trunkSourceWTFwtfFeatureCountercpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WTF/wtf/FeatureCounter.cpp (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/FeatureCounter.cpp        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WTF/wtf/FeatureCounter.cpp        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1,46 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 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 AND ITS CONTRIBUTORS &quot;AS IS&quot; 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 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;FeatureCounter.h&quot;
-
-namespace WTF {
-
-#if !PLATFORM(IOS) || !USE(APPLE_INTERNAL_SDK)
-
-void incrementFeatureCounterKey(const char* const key)
-{
-    UNUSED_PARAM(key);
-}
-
-void setFeatureCounterKey(const char* const key, int64_t value)
-{
-    UNUSED_PARAM(key);
-    UNUSED_PARAM(value);
-}
-
-#endif
-
-} // namespace WTF
</del></span></pre></div>
<a id="trunkSourceWTFwtfFeatureCounterh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WTF/wtf/FeatureCounter.h (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/FeatureCounter.h        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WTF/wtf/FeatureCounter.h        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1,39 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 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 AND ITS CONTRIBUTORS &quot;AS IS&quot; 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 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 FeatureCounter_h
-#define FeatureCounter_h
-
-namespace WTF {
-
-WTF_EXPORT_PRIVATE void incrementFeatureCounterKey(const char* const key);
-WTF_EXPORT_PRIVATE void setFeatureCounterKey(const char* const key, int64_t value);
-
-#define FEATURE_COUNTER_INCREMENT_KEY(key)   WTF::incrementFeatureCounterKey(key)
-#define FEATURE_COUNTER_SET_KEY(key, value)  WTF::setFeatureCounterKey(key, value)
-
-} // namespace WTF
-
-#endif // FeatureCounter_h
</del></span></pre></div>
<a id="trunkSourceWTFwtfiosFeatureCountermm"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WTF/wtf/ios/FeatureCounter.mm (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/ios/FeatureCounter.mm        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WTF/wtf/ios/FeatureCounter.mm        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1,48 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 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 AND ITS CONTRIBUTORS &quot;AS IS&quot; 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 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.
- */
-
-#import &quot;config.h&quot;
-#import &quot;FeatureCounter.h&quot;
-
-#if PLATFORM(IOS) &amp;&amp; USE(APPLE_INTERNAL_SDK)
-#import &lt;AppSupport/CPAggregateDictionary.h&gt;
-
-namespace WTF {
-
-void incrementFeatureCounterKey(const char* const key)
-{
-    NSString *nsKey = [[NSString alloc] initWithCharactersNoCopy:reinterpret_cast&lt;unichar*&gt;(const_cast&lt;char*&gt;(key)) length:strlen(key) freeWhenDone:NO];
-    [[CPAggregateDictionary sharedAggregateDictionary] incrementKey:nsKey];
-}
-
-void setFeatureCounterKey(const char* const key, int64_t value)
-{
-    NSString *nsKey = [[NSString alloc] initWithCharactersNoCopy:reinterpret_cast&lt;unichar*&gt;(const_cast&lt;char*&gt;(key)) length:strlen(key) freeWhenDone:NO];
-    [[CPAggregateDictionary sharedAggregateDictionary] setValue:value forScalarKey:nsKey];
-}
-
-} // namespace WTF
-
-#endif // PLATFORM(IOS) &amp;&amp; USE(APPLE_INTERNAL_SDK)
</del></span></pre></div>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebCore/CMakeLists.txt        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1978,6 +1978,7 @@
</span><span class="cx">     platform/DisplaySleepDisabler.cpp
</span><span class="cx">     platform/DragData.cpp
</span><span class="cx">     platform/DragImage.cpp
</span><ins>+    platform/FeatureCounter.cpp
</ins><span class="cx">     platform/FileChooser.cpp
</span><span class="cx">     platform/FileStream.cpp
</span><span class="cx">     platform/FileSystem.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebCore/ChangeLog        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1,3 +1,38 @@
</span><ins>+2014-12-17  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        [iOS] Make it possible to toggle FeatureCounter support at runtime
+        https://bugs.webkit.org/show_bug.cgi?id=139688
+        &lt;rdar://problem/19266254&gt;
+
+        Reviewed by Andreas Kling.
+
+        Make it possible to toggle FeatureCounter support at runtime by adding
+        a setting (disabled by default) and moving the API to a new
+        FeatureCounter class under WebCore/plattorm which only logs if the
+        setting is enabled. For privacy reasons, FeatureCounter logging is also
+        disabled for private / ephemeral sessions.
+
+        No new tests, no behavior change.
+
+        * CMakeLists.txt:
+        * Configurations/WebCore.xcconfig:
+        * WebCore.vcxproj/WebCore.vcxproj:
+        * WebCore.vcxproj/WebCore.vcxproj.filters:
+        * WebCore.xcodeproj/project.pbxproj:
+        * history/PageCache.cpp:
+        (WebCore::logCanCacheFrameDecision):
+        (WebCore::logCanCachePageDecision):
+        * page/Settings.in:
+        * platform/FeatureCounter.cpp: Renamed from Source/WTF/wtf/FeatureCounter.cpp.
+        (WebCore::FeatureCounter::shouldUseForPage):
+        (WebCore::FeatureCounter::incrementKey):
+        (WebCore::FeatureCounter::setKey):
+        * platform/FeatureCounter.h: Renamed from Source/WTF/wtf/FeatureCounter.h.
+        * platform/FeatureCounterKeys.h:
+        * platform/ios/FeatureCounter.mm: Renamed from Source/WTF/wtf/ios/FeatureCounter.mm.
+        (WebCore::FeatureCounter::incrementKey):
+        (WebCore::FeatureCounter::setKey):
+
</ins><span class="cx"> 2014-12-17  Anders Carlsson  &lt;andersca@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Get rid of PluginPackageNone.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreConfigurationsWebCorexcconfig"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Configurations/WebCore.xcconfig (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Configurations/WebCore.xcconfig        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebCore/Configurations/WebCore.xcconfig        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -71,8 +71,8 @@
</span><span class="cx"> PRODUCT_NAME = WebCore;
</span><span class="cx"> OTHER_LDFLAGS_BASE = -lsqlite3 -lobjc -lANGLE;
</span><span class="cx"> OTHER_LDFLAGS = $(inherited) $(OTHER_LDFLAGS_$(PLATFORM_NAME));
</span><del>-OTHER_LDFLAGS_iphoneos = $(OTHER_LDFLAGS_iphonesimulator) -framework IOSurface;
-OTHER_LDFLAGS_iphonesimulator = $(OTHER_LDFLAGS_BASE) -framework CFNetwork -framework CoreGraphics -framework CoreText -framework Foundation -framework GraphicsServices -framework ImageIO -framework OpenGLES -lMobileGestalt;
</del><ins>+OTHER_LDFLAGS_iphoneos = $(OTHER_LDFLAGS_iphonesimulator) -framework IOSurface -framework AppSupport;
+OTHER_LDFLAGS_iphonesimulator = $(OTHER_LDFLAGS_BASE) -framework CFNetwork -framework CoreGraphics -framework CoreText -framework Foundation -framework GraphicsServices -framework ImageIO -framework OpenGLES -framework AppSupport -lMobileGestalt;
</ins><span class="cx"> OTHER_LDFLAGS_macosx = $(OTHER_LDFLAGS_BASE) -sub_library libobjc -umbrella WebKit -allowable_client WebCoreTestSupport -allowable_client WebKit2 -allowable_client WebKitLegacy -framework ApplicationServices -framework AudioUnit -framework Carbon -framework Cocoa -framework IOSurface -framework OpenGL;
</span><span class="cx"> 
</span><span class="cx"> SECTORDER_FLAGS = $(SECTORDER_FLAGS_$(CONFIGURATION)_$(PLATFORM_NAME));
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -7403,6 +7403,7 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;..\platform\DisplaySleepDisabler.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\platform\DragData.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\platform\DragImage.cpp&quot; /&gt;
</span><ins>+    &lt;ClCompile Include=&quot;..\platform\FeatureCounter.cpp&quot; /&gt;
</ins><span class="cx">     &lt;ClCompile Include=&quot;..\platform\FileChooser.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\platform\FileStream.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\platform\FileSystem.cpp&quot; /&gt;
</span><span class="lines">@@ -19370,6 +19371,7 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\platform\DragData.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\platform\DragImage.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\platform\EventLoop.h&quot; /&gt;
</span><ins>+    &lt;ClInclude Include=&quot;..\platform\FeatureCounter.h&quot; /&gt;
</ins><span class="cx">     &lt;ClInclude Include=&quot;..\platform\FileChooser.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\platform\FileMetadata.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\platform\FileStream.h&quot; /&gt;
</span><span class="lines">@@ -21420,4 +21422,4 @@
</span><span class="cx">   &lt;ImportGroup Label=&quot;ExtensionTargets&quot;&gt;
</span><span class="cx">     &lt;Import Project=&quot;$(VCTargetsPath)\BuildCustomizations\masm.targets&quot; /&gt;
</span><span class="cx">   &lt;/ImportGroup&gt;
</span><del>-&lt;/Project&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;/Project&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1107,6 +1107,9 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;..\platform\DragImage.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;platform&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><ins>+    &lt;ClCompile Include=&quot;..\platform\FeatureCounter.cpp&quot;&gt;
+      &lt;Filter&gt;platform&lt;/Filter&gt;
+    &lt;/ClCompile&gt;
</ins><span class="cx">     &lt;ClCompile Include=&quot;..\platform\FileChooser.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;platform&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><span class="lines">@@ -8178,6 +8181,9 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\platform\DragImage.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;platform&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><ins>+    &lt;ClInclude Include=&quot;..\platform\FeatureCounter.h&quot;&gt;
+      &lt;Filter&gt;platform&lt;/Filter&gt;
+    &lt;/ClInclude&gt;
</ins><span class="cx">     &lt;ClInclude Include=&quot;..\platform\EventLoop.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;platform&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><span class="lines">@@ -15491,4 +15497,4 @@
</span><span class="cx">       &lt;Filter&gt;platform\win&lt;/Filter&gt;
</span><span class="cx">     &lt;/MASM&gt;
</span><span class="cx">   &lt;/ItemGroup&gt;
</span><del>-&lt;/Project&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;/Project&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1614,6 +1614,9 @@
</span><span class="cx">                 45BAC2B01360BBAB005DA258 /* IconURL.h in Headers */ = {isa = PBXBuildFile; fileRef = 45BAC2AF1360BBAB005DA258 /* IconURL.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 45FEA5CF156DDE8C00654101 /* Decimal.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 45FEA5CD156DDE8C00654101 /* Decimal.cpp */; };
</span><span class="cx">                 45FEA5D0156DDE8C00654101 /* Decimal.h in Headers */ = {isa = PBXBuildFile; fileRef = 45FEA5CE156DDE8C00654101 /* Decimal.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><ins>+                467438541A421330000494FB /* FeatureCounter.mm in Sources */ = {isa = PBXBuildFile; fileRef = 467438531A421330000494FB /* FeatureCounter.mm */; };
+                46779CE21A40B97200B6864E /* FeatureCounter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46779CE01A40B97100B6864E /* FeatureCounter.cpp */; };
+                46779CE31A40B97200B6864E /* FeatureCounter.h in Headers */ = {isa = PBXBuildFile; fileRef = 46779CE11A40B97200B6864E /* FeatureCounter.h */; };
</ins><span class="cx">                 4689F1AF1267BAE100E8D380 /* FileMetadata.h in Headers */ = {isa = PBXBuildFile; fileRef = 4689F1AE1267BAE100E8D380 /* FileMetadata.h */; };
</span><span class="cx">                 490707E61219C04300D90E51 /* ANGLEWebKitBridge.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 490707E41219C04300D90E51 /* ANGLEWebKitBridge.cpp */; };
</span><span class="cx">                 490707E71219C04300D90E51 /* ANGLEWebKitBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 490707E51219C04300D90E51 /* ANGLEWebKitBridge.h */; };
</span><span class="lines">@@ -8714,6 +8717,9 @@
</span><span class="cx">                 45BAC2AF1360BBAB005DA258 /* IconURL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IconURL.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 45FEA5CD156DDE8C00654101 /* Decimal.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Decimal.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 45FEA5CE156DDE8C00654101 /* Decimal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Decimal.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><ins>+                467438531A421330000494FB /* FeatureCounter.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = FeatureCounter.mm; path = ios/FeatureCounter.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
+                46779CE01A40B97100B6864E /* FeatureCounter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FeatureCounter.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
+                46779CE11A40B97200B6864E /* FeatureCounter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FeatureCounter.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 4689F1AE1267BAE100E8D380 /* FileMetadata.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FileMetadata.h; path = platform/FileMetadata.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 490707E41219C04300D90E51 /* ANGLEWebKitBridge.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ANGLEWebKitBridge.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 490707E51219C04300D90E51 /* ANGLEWebKitBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANGLEWebKitBridge.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -18588,6 +18594,7 @@
</span><span class="cx">                                 3140379A124BEA7F00AF40E4 /* DeviceOrientationClientIOS.mm */,
</span><span class="cx">                                 0FDA7C22188330A900C954B5 /* DragImageIOS.mm */,
</span><span class="cx">                                 26F40D4914904A6300CA67C4 /* EventLoopIOS.mm */,
</span><ins>+                                467438531A421330000494FB /* FeatureCounter.mm */,
</ins><span class="cx">                                 26C17A3C1491D2D400D12BA2 /* FileSystemIOS.h */,
</span><span class="cx">                                 26C17A3D1491D2D400D12BA2 /* FileSystemIOS.mm */,
</span><span class="cx">                                 265541371489811C000DFC5D /* KeyEventCodesIOS.h */,
</span><span class="lines">@@ -21462,6 +21469,8 @@
</span><span class="cx">                                 A7CFB3D00B7ED10A0070C32D /* DragImage.h */,
</span><span class="cx">                                 1CA19E150DC255CA0065A994 /* EventLoop.h */,
</span><span class="cx">                                 1ABA34FD1A409FEA005570EA /* FeatureCounterKeys.h */,
</span><ins>+                                46779CE01A40B97100B6864E /* FeatureCounter.cpp */,
+                                46779CE11A40B97200B6864E /* FeatureCounter.h */,
</ins><span class="cx">                                 934FE9E40B5CA539003E4A73 /* FileChooser.cpp */,
</span><span class="cx">                                 066C772A0AB603B700238CC4 /* FileChooser.h */,
</span><span class="cx">                                 2EF1BFE8121C9F4200C27627 /* FileStream.cpp */,
</span><span class="lines">@@ -23719,6 +23728,7 @@
</span><span class="cx">                                 A80E6D040A1989CA007FB8C5 /* Counter.h in Headers */,
</span><span class="cx">                                 BC5EB9790E82069200B25965 /* CounterContent.h in Headers */,
</span><span class="cx">                                 BC5EB9510E82056B00B25965 /* CounterDirectives.h in Headers */,
</span><ins>+                                46779CE31A40B97200B6864E /* FeatureCounter.h in Headers */,
</ins><span class="cx">                                 9392F14C0AD1861B00691BD4 /* CounterNode.h in Headers */,
</span><span class="cx">                                 D0B0556809C6700100307E43 /* CreateLinkCommand.h in Headers */,
</span><span class="cx">                                 514C766E0CE923A1007EF3CD /* Credential.h in Headers */,
</span><span class="lines">@@ -28609,6 +28619,7 @@
</span><span class="cx">                                 77A17AA612F28B2A004E02F6 /* JSOESVertexArrayObject.cpp in Sources */,
</span><span class="cx">                                 FDF6BAF8134A4C9800822920 /* JSOfflineAudioCompletionEvent.cpp in Sources */,
</span><span class="cx">                                 FDA9326616703BA9008982DC /* JSOfflineAudioContext.cpp in Sources */,
</span><ins>+                                46779CE21A40B97200B6864E /* FeatureCounter.cpp in Sources */,
</ins><span class="cx">                                 FDEA6242152102E200479DF0 /* JSOscillatorNode.cpp in Sources */,
</span><span class="cx">                                 FDBD1DFC167FE27D0051A11E /* JSOscillatorNodeCustom.cpp in Sources */,
</span><span class="cx">                                 1A0D57400A5C7867007EDD4C /* JSOverflowEvent.cpp in Sources */,
</span><span class="lines">@@ -29565,6 +29576,7 @@
</span><span class="cx">                                 CD3A496417A9D01B00274E42 /* SourceBufferList.cpp in Sources */,
</span><span class="cx">                                 CDC8B5AA18047FF10016E685 /* SourceBufferPrivateAVFObjC.mm in Sources */,
</span><span class="cx">                                 84A81F410FC7E02700955300 /* SourceGraphic.cpp in Sources */,
</span><ins>+                                467438541A421330000494FB /* FeatureCounter.mm in Sources */,
</ins><span class="cx">                                 076306D717E149CF005A7C4E /* SourceInfo.cpp in Sources */,
</span><span class="cx">                                 536D5A25193F40FC00CE4CAB /* SourceSizeList.cpp in Sources */,
</span><span class="cx">                                 2D58D8561A15F65F00A5F726 /* DataDetection.mm in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCorehistoryPageCachecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/history/PageCache.cpp (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/history/PageCache.cpp        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebCore/history/PageCache.cpp        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx"> #include &quot;DeviceOrientationController.h&quot;
</span><span class="cx"> #include &quot;Document.h&quot;
</span><span class="cx"> #include &quot;DocumentLoader.h&quot;
</span><del>-#include &quot;FeatureCounterKeys.h&quot;
</del><ins>+#include &quot;FeatureCounter.h&quot;
</ins><span class="cx"> #include &quot;FrameLoader.h&quot;
</span><span class="cx"> #include &quot;FrameLoaderClient.h&quot;
</span><span class="cx"> #include &quot;FrameLoaderStateMachine.h&quot;
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx">     PCLOG(&quot;+---&quot;);
</span><span class="cx">     if (!frame-&gt;loader().documentLoader()) {
</span><span class="cx">         PCLOG(&quot;   -There is no DocumentLoader object&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureNoDocumentLoaderKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureNoDocumentLoaderKey);
</ins><span class="cx">         return 1 &lt;&lt; NoDocumentLoader;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -114,7 +114,7 @@
</span><span class="cx">     unsigned rejectReasons = 0;
</span><span class="cx">     if (!frame-&gt;loader().documentLoader()-&gt;mainDocumentError().isNull()) {
</span><span class="cx">         PCLOG(&quot;   -Main document has an error&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureMainDocumentErrorKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureMainDocumentErrorKey);
</ins><span class="cx"> #if !PLATFORM(IOS)
</span><span class="cx">         rejectReasons |= 1 &lt;&lt; MainDocumentError;
</span><span class="cx"> #else
</span><span class="lines">@@ -126,71 +126,71 @@
</span><span class="cx">     }
</span><span class="cx">     if (frame-&gt;loader().documentLoader()-&gt;substituteData().isValid() &amp;&amp; frame-&gt;loader().documentLoader()-&gt;substituteData().failingURL().isEmpty()) {
</span><span class="cx">         PCLOG(&quot;   -Frame is an error page&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureIsErrorPageKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureIsErrorPageKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; IsErrorPage;
</span><span class="cx">     }
</span><span class="cx">     if (frame-&gt;loader().subframeLoader().containsPlugins() &amp;&amp; !frame-&gt;page()-&gt;settings().pageCacheSupportsPlugins()) {
</span><span class="cx">         PCLOG(&quot;   -Frame contains plugins&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureHasPlugins);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureHasPlugins);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; HasPlugins;
</span><span class="cx">     }
</span><span class="cx">     if (frame-&gt;document()-&gt;url().protocolIs(&quot;https&quot;)
</span><span class="cx">         &amp;&amp; (frame-&gt;loader().documentLoader()-&gt;response().cacheControlContainsNoCache()
</span><span class="cx">             || frame-&gt;loader().documentLoader()-&gt;response().cacheControlContainsNoStore())) {
</span><span class="cx">         if (frame-&gt;loader().documentLoader()-&gt;response().cacheControlContainsNoCache())
</span><del>-            FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureHTTPSNoCacheKey);
</del><ins>+            FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureHTTPSNoCacheKey);
</ins><span class="cx">         if (frame-&gt;loader().documentLoader()-&gt;response().cacheControlContainsNoStore())
</span><del>-            FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureHTTPSNoStoreKey);
</del><ins>+            FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureHTTPSNoStoreKey);
</ins><span class="cx">         PCLOG(&quot;   -Frame is HTTPS, and cache control prohibits caching or storing&quot;);
</span><span class="cx">         rejectReasons |= 1 &lt;&lt; IsHttpsAndCacheControlled;
</span><span class="cx">     }
</span><span class="cx"> #if ENABLE(SQL_DATABASE)
</span><span class="cx">     if (DatabaseManager::manager().hasOpenDatabases(frame-&gt;document())) {
</span><span class="cx">         PCLOG(&quot;   -Frame has open database handles&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureHasOpenDatabasesKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureHasOpenDatabasesKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; HasDatabaseHandles;
</span><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx"> #if ENABLE(SHARED_WORKERS)
</span><span class="cx">     if (SharedWorkerRepository::hasSharedWorkers(frame-&gt;document())) {
</span><span class="cx">         PCLOG(&quot;   -Frame has associated SharedWorkers&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureHasSharedWorkersKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureHasSharedWorkersKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; HasSharedWorkers;
</span><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx">     if (!frame-&gt;loader().history().currentItem()) {
</span><span class="cx">         PCLOG(&quot;   -No current history item&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureNoCurrentHistoryItemKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureNoCurrentHistoryItemKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; NoHistoryItem;
</span><span class="cx">     }
</span><span class="cx">     if (frame-&gt;loader().quickRedirectComing()) {
</span><span class="cx">         PCLOG(&quot;   -Quick redirect is coming&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureQuirkRedirectComingKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureQuirkRedirectComingKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; QuickRedirectComing;
</span><span class="cx">     }
</span><span class="cx">     if (frame-&gt;loader().documentLoader()-&gt;isLoadingInAPISense()) {
</span><span class="cx">         PCLOG(&quot;   -DocumentLoader is still loading in API sense&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureLoadingAPISenseKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureLoadingAPISenseKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; IsLoadingInAPISense;
</span><span class="cx">     }
</span><span class="cx">     if (frame-&gt;loader().documentLoader()-&gt;isStopping()) {
</span><span class="cx">         PCLOG(&quot;   -DocumentLoader is in the middle of stopping&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureDocumentLoaderStoppingKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureDocumentLoaderStoppingKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; IsStopping;
</span><span class="cx">     }
</span><span class="cx">     if (!frame-&gt;document()-&gt;canSuspendActiveDOMObjects()) {
</span><span class="cx">         PCLOG(&quot;   -The document cannot suspend its active DOM Objects&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureCannotSuspendActiveDOMObjectsKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureCannotSuspendActiveDOMObjectsKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; CannotSuspendActiveDOMObjects;
</span><span class="cx">     }
</span><span class="cx">     if (!frame-&gt;loader().documentLoader()-&gt;applicationCacheHost()-&gt;canCacheInPageCache()) {
</span><span class="cx">         PCLOG(&quot;   -The DocumentLoader uses an application cache&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureApplicationCacheKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureApplicationCacheKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; DocumentLoaderUsesApplicationCache;
</span><span class="cx">     }
</span><span class="cx">     if (!frame-&gt;loader().client().canCachePage()) {
</span><span class="cx">         PCLOG(&quot;   -The client says this frame cannot be cached&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureDeniedByClientKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(frame-&gt;page(), FeatureCounterPageCacheFailureDeniedByClientKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; ClientDeniesCaching;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -242,45 +242,45 @@
</span><span class="cx"> #if ENABLE(DEVICE_ORIENTATION) &amp;&amp; !PLATFORM(IOS)
</span><span class="cx">     if (DeviceMotionController::isActiveAt(page)) {
</span><span class="cx">         PCLOG(&quot;   -Page is using DeviceMotion&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureDeviceMotionKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(page, FeatureCounterPageCacheFailureDeviceMotionKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; UsesDeviceMotion;
</span><span class="cx">     }
</span><span class="cx">     if (DeviceOrientationController::isActiveAt(page)) {
</span><span class="cx">         PCLOG(&quot;   -Page is using DeviceOrientation&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureDeviceOrientationKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(page, FeatureCounterPageCacheFailureDeviceOrientationKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; UsesDeviceOrientation;
</span><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx"> #if ENABLE(PROXIMITY_EVENTS)
</span><span class="cx">     if (DeviceProximityController::isActiveAt(page)) {
</span><span class="cx">         PCLOG(&quot;   -Page is using DeviceProximity&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureDeviceProximityKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(page, FeatureCounterPageCacheFailureDeviceProximityKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; UsesDeviceMotion;
</span><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx">     FrameLoadType loadType = page-&gt;mainFrame().loader().loadType();
</span><span class="cx">     if (loadType == FrameLoadType::Reload) {
</span><span class="cx">         PCLOG(&quot;   -Load type is: Reload&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureReloadKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(page, FeatureCounterPageCacheFailureReloadKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; IsReload;
</span><span class="cx">     }
</span><span class="cx">     if (loadType == FrameLoadType::ReloadFromOrigin) {
</span><span class="cx">         PCLOG(&quot;   -Load type is: Reload from origin&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureReloadFromOriginKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(page, FeatureCounterPageCacheFailureReloadFromOriginKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; IsReloadFromOrigin;
</span><span class="cx">     }
</span><span class="cx">     if (loadType == FrameLoadType::Same) {
</span><span class="cx">         PCLOG(&quot;   -Load type is: Same&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureSameLoadKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(page, FeatureCounterPageCacheFailureSameLoadKey);
</ins><span class="cx">         rejectReasons |= 1 &lt;&lt; IsSameLoad;
</span><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     if (rejectReasons) {
</span><span class="cx">         PCLOG(&quot; Page CANNOT be cached\n--------&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheFailureKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(page, FeatureCounterPageCacheFailureKey);
</ins><span class="cx">     } else {
</span><span class="cx">         PCLOG(&quot; Page CAN be cached\n--------&quot;);
</span><del>-        FEATURE_COUNTER_INCREMENT_KEY(FeatureCounterPageCacheSuccessKey);
</del><ins>+        FEATURE_COUNTER_INCREMENT_KEY(page, FeatureCounterPageCacheSuccessKey);
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageSettingsin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Settings.in (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Settings.in        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebCore/page/Settings.in        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -77,6 +77,7 @@
</span><span class="cx"> scriptMarkupEnabled initial=true
</span><span class="cx"> needsSiteSpecificQuirks initial=false
</span><span class="cx"> domTimersThrottlingEnabled initial=true
</span><ins>+featureCounterEnabled initial=false
</ins><span class="cx"> webArchiveDebugModeEnabled initial=false, conditional=WEB_ARCHIVE
</span><span class="cx"> localFileContentSniffingEnabled initial=false
</span><span class="cx"> offlineWebApplicationCacheEnabled initial=false
</span><span class="lines">@@ -237,4 +238,4 @@
</span><span class="cx"> 
</span><span class="cx"> serviceControlsEnabled initial=false, conditional=SERVICE_CONTROLS
</span><span class="cx"> 
</span><del>-ignoreViewportScalingConstraints initial=false
</del><span class="cx">\ No newline at end of file
</span><ins>+ignoreViewportScalingConstraints initial=false
</ins></span></pre></div>
<a id="trunkSourceWebCoreplatformFeatureCountercppfromrev177453trunkSourceWTFwtfFeatureCountercpp"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/platform/FeatureCounter.cpp (from rev 177453, trunk/Source/WTF/wtf/FeatureCounter.cpp) (0 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/FeatureCounter.cpp                                (rev 0)
+++ trunk/Source/WebCore/platform/FeatureCounter.cpp        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -0,0 +1,67 @@
</span><ins>+/*
+ * Copyright (C) 2014 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 AND ITS CONTRIBUTORS &quot;AS IS&quot; 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 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;FeatureCounter.h&quot;
+
+#include &quot;Page.h&quot;
+#include &quot;Settings.h&quot;
+
+namespace WebCore {
+
+bool FeatureCounter::shouldUseForPage(Page* page)
+{
+    if (!page)
+        return false;
+
+    // Log only if the setting is enabled.
+    if (!page-&gt;settings().featureCounterEnabled())
+        return false;
+
+    // Do not log if this is a private session.
+    if (page-&gt;usesEphemeralSession())
+        return false;
+
+    return true;
+}
+
+#if !PLATFORM(IOS) || !USE(APPLE_INTERNAL_SDK)
+
+void FeatureCounter::incrementKey(Page* page, const char* const key)
+{
+    UNUSED_PARAM(page);
+    UNUSED_PARAM(key);
+}
+
+void FeatureCounter::setKey(Page* page, const char* const key, int64_t value)
+{
+    UNUSED_PARAM(page);
+    UNUSED_PARAM(key);
+    UNUSED_PARAM(value);
+}
+
+#endif
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCoreplatformFeatureCounterhfromrev177453trunkSourceWTFwtfFeatureCounterh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/platform/FeatureCounter.h (from rev 177453, trunk/Source/WTF/wtf/FeatureCounter.h) (0 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/FeatureCounter.h                                (rev 0)
+++ trunk/Source/WebCore/platform/FeatureCounter.h        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+/*
+ * Copyright (C) 2014 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 AND ITS CONTRIBUTORS &quot;AS IS&quot; 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 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 FeatureCounter_h
+#define FeatureCounter_h
+
+#include &quot;FeatureCounterKeys.h&quot;
+
+namespace WebCore {
+
+class Page;
+
+class FeatureCounter {
+public:
+    static void incrementKey(Page*, const char* const key);
+    static void setKey(Page*, const char* const key, int64_t value);
+
+private:
+    static bool shouldUseForPage(Page*);
+};
+
+} // namespace WebCore
+
+#define FEATURE_COUNTER_INCREMENT_KEY(page, key)   WebCore::FeatureCounter::incrementKey(page, key)
+#define FEATURE_COUNTER_SET_KEY(page, key, value)  WebCore::FeatureCounter::setKey(page, key, value)
+
+#endif // FeatureCounter_h
</ins></span></pre></div>
<a id="trunkSourceWebCoreplatformFeatureCounterKeysh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/FeatureCounterKeys.h (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/FeatureCounterKeys.h        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebCore/platform/FeatureCounterKeys.h        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -26,8 +26,6 @@
</span><span class="cx"> #ifndef FeatureCounterKeys_h
</span><span class="cx"> #define FeatureCounterKeys_h
</span><span class="cx"> 
</span><del>-#include &lt;wtf/FeatureCounter.h&gt;
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> // Page cache.
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosFeatureCountermmfromrev177453trunkSourceWTFwtfiosFeatureCountermm"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/platform/ios/FeatureCounter.mm (from rev 177453, trunk/Source/WTF/wtf/ios/FeatureCounter.mm) (0 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/FeatureCounter.mm                                (rev 0)
+++ trunk/Source/WebCore/platform/ios/FeatureCounter.mm        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+/*
+ * Copyright (C) 2014 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 AND ITS CONTRIBUTORS &quot;AS IS&quot; 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 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.
+ */
+
+#import &quot;config.h&quot;
+#import &quot;FeatureCounter.h&quot;
+
+#if PLATFORM(IOS) &amp;&amp; USE(APPLE_INTERNAL_SDK)
+#import &lt;AppSupport/CPAggregateDictionary.h&gt;
+
+namespace WebCore {
+
+void FeatureCounter::incrementKey(Page* page, const char* const key)
+{
+    if (!shouldUseForPage(page))
+        return;
+
+    NSString *nsKey = [[NSString alloc] initWithCharactersNoCopy:reinterpret_cast&lt;unichar*&gt;(const_cast&lt;char*&gt;(key)) length:strlen(key) freeWhenDone:NO];
+    [[CPAggregateDictionary sharedAggregateDictionary] incrementKey:nsKey];
+}
+
+void FeatureCounter::setKey(Page* page, const char* const key, int64_t value)
+{
+    if (!shouldUseForPage(page))
+        return;
+
+    NSString *nsKey = [[NSString alloc] initWithCharactersNoCopy:reinterpret_cast&lt;unichar*&gt;(const_cast&lt;char*&gt;(key)) length:strlen(key) freeWhenDone:NO];
+    [[CPAggregateDictionary sharedAggregateDictionary] setValue:value forScalarKey:nsKey];
+}
+
+} // namespace WebCore
+
+#endif // PLATFORM(IOS) &amp;&amp; USE(APPLE_INTERNAL_SDK)
+
</ins></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebKit2/ChangeLog        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2014-12-17  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        [iOS] Make it possible to toggle FeatureCounter support at runtime
+        https://bugs.webkit.org/show_bug.cgi?id=139688
+        &lt;rdar://problem/19266254&gt;
+
+        Reviewed by Andreas Kling.
+
+        Add private settings API to toggle FeatureCounter support on Safari and
+        MobileSafari.
+
+        * Shared/WebPreferencesDefinitions.h:
+        * UIProcess/API/C/WKPreferences.cpp:
+        (WKPreferencesSetFeatureCounterEnabled):
+        (WKPreferencesGetFeatureCounterEnabled):
+        * UIProcess/API/C/WKPreferencesRefPrivate.h:
+        * UIProcess/API/Cocoa/WKPreferences.mm:
+        (-[WKPreferences _featureCounterEnabled]):
+        (-[WKPreferences _setFeatureCounterEnabled:]):
+        * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::updatePreferences):
+
</ins><span class="cx"> 2014-12-17  Anders Carlsson  &lt;andersca@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Clean up SQL statement building in SQLiteIDBCursor
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebPreferencesDefinitionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -121,6 +121,7 @@
</span><span class="cx">     macro(TabsToLinks, tabsToLinks, Bool, bool, DEFAULT_WEBKIT_TABSTOLINKS_ENABLED) \
</span><span class="cx">     macro(DNSPrefetchingEnabled, dnsPrefetchingEnabled, Bool, bool, false) \
</span><span class="cx">     macro(DOMTimersThrottlingEnabled, domTimersThrottlingEnabled, Bool, bool, true) \
</span><ins>+    macro(FeatureCounterEnabled, featureCounterEnabled, Bool, bool, false) \
</ins><span class="cx">     macro(WebArchiveDebugModeEnabled, webArchiveDebugModeEnabled, Bool, bool, false) \
</span><span class="cx">     macro(LocalFileContentSniffingEnabled, localFileContentSniffingEnabled, Bool, bool, false) \
</span><span class="cx">     macro(UsesPageCache, usesPageCache, Bool, bool, true) \
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPreferencescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -589,6 +589,16 @@
</span><span class="cx">     return toImpl(preferencesRef)-&gt;domTimersThrottlingEnabled();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void WKPreferencesSetFeatureCounterEnabled(WKPreferencesRef preferencesRef, bool enabled)
+{
+    toImpl(preferencesRef)-&gt;setFeatureCounterEnabled(enabled);
+}
+
+bool WKPreferencesGetFeatureCounterEnabled(WKPreferencesRef preferencesRef)
+{
+    return toImpl(preferencesRef)-&gt;featureCounterEnabled();
+}
+
</ins><span class="cx"> void WKPreferencesSetWebArchiveDebugModeEnabled(WKPreferencesRef preferencesRef, bool enabled)
</span><span class="cx"> {
</span><span class="cx">     toImpl(preferencesRef)-&gt;setWebArchiveDebugModeEnabled(enabled);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPreferencesRefPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -121,6 +121,10 @@
</span><span class="cx"> WK_EXPORT bool WKPreferencesGetDOMTimersThrottlingEnabled(WKPreferencesRef preferences);
</span><span class="cx"> 
</span><span class="cx"> // Defaults to false.
</span><ins>+WK_EXPORT void WKPreferencesSetFeatureCounterEnabled(WKPreferencesRef preferences, bool enabled);
+WK_EXPORT bool WKPreferencesGetFeatureCounterEnabled(WKPreferencesRef preferences);
+
+// Defaults to false.
</ins><span class="cx"> WK_EXPORT void WKPreferencesSetWebArchiveDebugModeEnabled(WKPreferencesRef preferences, bool enabled);
</span><span class="cx"> WK_EXPORT bool WKPreferencesGetWebArchiveDebugModeEnabled(WKPreferencesRef preferences);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKPreferencesmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -113,6 +113,16 @@
</span><span class="cx">     _preferences-&gt;setTelephoneNumberParsingEnabled(telephoneNumberDetectionIsEnabled);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+- (BOOL)_featureCounterEnabled
+{
+    return _preferences-&gt;featureCounterEnabled();
+}
+
+- (void)_setFeatureCounterEnabled:(BOOL)featureCounterEnabled
+{
+    _preferences-&gt;setFeatureCounterEnabled(featureCounterEnabled);
+}
+
</ins><span class="cx"> static WebCore::SecurityOrigin::StorageBlockingPolicy toStorageBlockingPolicy(_WKStorageBlockingPolicy policy)
</span><span class="cx"> {
</span><span class="cx">     switch (policy) {
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKPreferencesPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -46,6 +46,7 @@
</span><span class="cx"> 
</span><span class="cx"> // FIXME: This property should not have the verb &quot;is&quot; in it.
</span><span class="cx"> @property (nonatomic, setter=_setTelephoneNumberDetectionIsEnabled:) BOOL _telephoneNumberDetectionIsEnabled;
</span><ins>+@property (nonatomic, setter=_setFeatureCounterEnabled:) BOOL _featureCounterEnabled WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
</ins><span class="cx"> @property (nonatomic, setter=_setStorageBlockingPolicy:) _WKStorageBlockingPolicy _storageBlockingPolicy;
</span><span class="cx"> 
</span><span class="cx"> @property (nonatomic, setter=_setCompositingBordersVisible:) BOOL _compositingBordersVisible;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (177454 => 177455)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2014-12-17 20:57:12 UTC (rev 177454)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2014-12-17 21:03:51 UTC (rev 177455)
</span><span class="lines">@@ -2711,6 +2711,7 @@
</span><span class="cx">     settings.setForceFTPDirectoryListings(store.getBoolValueForKey(WebPreferencesKey::forceFTPDirectoryListingsKey()));
</span><span class="cx">     settings.setDNSPrefetchingEnabled(store.getBoolValueForKey(WebPreferencesKey::dnsPrefetchingEnabledKey()));
</span><span class="cx">     settings.setDOMTimersThrottlingEnabled(store.getBoolValueForKey(WebPreferencesKey::domTimersThrottlingEnabledKey()));
</span><ins>+    settings.setFeatureCounterEnabled(store.getBoolValueForKey(WebPreferencesKey::featureCounterEnabledKey()));
</ins><span class="cx"> #if ENABLE(WEB_ARCHIVE)
</span><span class="cx">     settings.setWebArchiveDebugModeEnabled(store.getBoolValueForKey(WebPreferencesKey::webArchiveDebugModeEnabledKey()));
</span><span class="cx"> #endif
</span></span></pre>
</div>
</div>

</body>
</html>