Add a USE() macro for content filtering code
https://bugs.webkit.org/show_bug.cgi?id=107098

Reviewed by Mark Rowe.

Source/WebCore:

* WebCore.exp.in: Use USE(CONTENT_FILTERING).
* loader/MainResourceLoader.cpp:
(WebCore::MainResourceLoader::MainResourceLoader): Ditto.
(WebCore::MainResourceLoader::~MainResourceLoader): Ditto.
(WebCore::MainResourceLoader::cancel): Ditto.
(WebCore::MainResourceLoader::responseReceived): Ditto.
(WebCore::MainResourceLoader::dataReceived): Ditto.
(WebCore::MainResourceLoader::didFinishLoading): Ditto.
(WebCore::MainResourceLoader::notifyFinished): Ditto.
* loader/MainResourceLoader.h:
(MainResourceLoader): Ditto.
* platform/mac/WebCoreSystemInterface.h: Ditto.
* platform/mac/WebCoreSystemInterface.mm: Ditto.

Source/WebKit/mac:

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).

Source/WebKit2:

* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).

Source/WTF:

* wtf/Platform.h: Define WTF_USE_CONTENT_FILTERING on Mac platforms
more recent than Lion.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Enable process suppression by default on Mac
https://bugs.webkit.org/show_bug.cgi?id=106804

Patch by Kiran Muppala <cmuppala@apple.com> on 2013-01-21
Reviewed by Alexey Proskuryakov.

* UIProcess/WebContext.cpp:
(WebKit::WebContext::WebContext): Change initialized value of
m_processSuppressionEnabled from false to true.
* UIProcess/mac/WebContextMac.mm:
(WebKit::WebContext::platformInitialize): Since process suppression
is no longer disabled on construction, do not disable it for global
child processes either.  Instead enable occlusion notifications as
they are needed to trigger process suppression.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140367 268f45cc-cd09-0410-ab3c-d52691b4dbfc