2011-03-03 Maciej Stachowiak <mjs@apple.com>
[WebKit.git] / Source / WebKit2 / Shared / WebProcessCreationParameters.cpp
index 09b005c182c55374dee3a3a43fac14e98e94cbbe..360c6d7c6f19407ccbad8311e501db80edeb7684 100644 (file)
@@ -32,6 +32,8 @@ namespace WebKit {
 
 WebProcessCreationParameters::WebProcessCreationParameters()
     : shouldTrackVisitedLinks(false)
+    , clearResourceCaches(false)
+    , clearApplicationCache(false)
     , shouldAlwaysUseComplexTextCodePath(false)
     , defaultRequestTimeoutInterval(INT_MAX)
 #if PLATFORM(MAC)
@@ -55,6 +57,8 @@ void WebProcessCreationParameters::encode(CoreIPC::ArgumentEncoder* encoder) con
     encoder->encode(mimeTypesWithCustomRepresentation);
     encoder->encodeEnum(cacheModel);
     encoder->encode(shouldTrackVisitedLinks);
+    encoder->encode(clearResourceCaches);
+    encoder->encode(clearApplicationCache);
     encoder->encode(shouldAlwaysUseComplexTextCodePath);
     encoder->encode(languageCode);
     encoder->encode(textCheckerState);
@@ -100,6 +104,10 @@ bool WebProcessCreationParameters::decode(CoreIPC::ArgumentDecoder* decoder, Web
         return false;
     if (!decoder->decode(parameters.shouldTrackVisitedLinks))
         return false;
+    if (!decoder->decode(parameters.clearResourceCaches))
+        return false;
+    if (!decoder->decode(parameters.clearApplicationCache))
+        return false;
     if (!decoder->decode(parameters.shouldAlwaysUseComplexTextCodePath))
         return false;
     if (!decoder->decode(parameters.languageCode))