[WK2][Soup] Support cache model in NetworkProcess
https://bugs.webkit.org/show_bug.cgi?id=118343

Patch by Csaba Osztrogonác <ossy@webkit.org> on 2013-12-09
Reviewed by NOBODY (OOPS!).

Original patch by Kwang Yul Seo <skyul@company100.net> .

Copied cache model code from WebProcess.

Moved getCacheDiskFreeSize and getMemorySize into a seperate file so
they can be shared between WebProcess and NetworkProcess.

NetworkProcess is configured not to use the WebCore memory cache.

The following things were fixed by Csaba Osztrogonác:
- removed session variable not to have conflict with https://bugs.webkit.org/show_bug.cgi?id=118388
- added GRefPtr.h include
- added new file to cmake files too
- added the necessary USE(SOUP) guards
- minor code cleanup (remove unnecessary include, namespace)
- don't initialize/set/clear the disk cache on the WebProcess side if NetworkProcess is used

* GNUmakefile.list.am:
* NetworkProcess/soup/NetworkProcessSoup.cpp:
(WebKit::NetworkProcess::platformInitializeNetworkProcess):
Initialize soup cache.
(WebKit::NetworkProcess::platformSetCacheModel):
Copied code from WebProcess::platformSetCacheModel but removed
WebCore memory cache initialization because NetworkProcess does not use
the WebCore memory cache.
(WebKit::NetworkProcess::clearCacheForAllOrigins):
Copied code from WebProcess::clearCacheForAllOrigins.
* NetworkProcess/unix/NetworkProcessMainUnix.cpp:
Copied initialization code from WebProcessMainGtk.cpp.
(WebKit::NetworkProcessMain):
* PlatformEfl.cmake:
* PlatformGTK.cmake:
* Shared/soup/CacheModelHelper.cpp: Copied from Source/WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp.
(WebKit::getCacheDiskFreeSize):
Moved from WebProcessSoup.cpp to share it between WebProcess and NetworkProcess.
(WebKit::getMemorySize):
Moved from WebProcessSoup.cpp to share it between WebProcess and NetworkProcess.
* Shared/soup/CacheModelHelper.h: Copied from Source/WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp.
* WebProcess/soup/WebProcessSoup.cpp:
(WebKit::WebProcess::platformSetCacheModel): Don't set the disk cache if NetworkProcess is used.
(WebKit::WebProcess::platformClearResourceCaches): Don't clear the non-existing disk cache. (if NetworkProcess is used)
(WebKit::WebProcess::platformInitializeWebProcess): Don't initialize the disk cache if NetworkProcess is used.