Changeset 177356 in webkit


Ignore:
Timestamp:
Dec 16, 2014 2:08:13 AM (9 years ago)
Author:
Antti Koivisto
Message:

WebKit level persistent caching
https://bugs.webkit.org/show_bug.cgi?id=30322

Minor cleanups based on comments by Joseph Pecoraro.

  • NetworkProcess/cache/NetworkCache.cpp:

(WebKit::decodeStorageEntry):

  • NetworkProcess/cache/NetworkCache.h:
  • NetworkProcess/cache/NetworkCacheStorage.h:
  • NetworkProcess/cocoa/NetworkProcessCocoa.mm:

(WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa):

Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r177332 r177356  
     12014-12-16  Antti Koivisto  <antti@apple.com>
     2
     3        WebKit level persistent caching
     4        https://bugs.webkit.org/show_bug.cgi?id=30322
     5
     6        Minor cleanups based on comments by Joseph Pecoraro.
     7
     8        * NetworkProcess/cache/NetworkCache.cpp:
     9        (WebKit::decodeStorageEntry):
     10        * NetworkProcess/cache/NetworkCache.h:
     11        * NetworkProcess/cache/NetworkCacheStorage.h:
     12        * NetworkProcess/cocoa/NetworkProcessCocoa.mm:
     13        (WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa):
     14
    1152014-12-15  Bartlomiej Gajda  <b.gajda@samsung.com>
    216
  • trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp

    r177294 r177356  
    148148
    149149        if (!verifyVaryingRequestHeaders(varyingRequestHeaders, request)) {
    150             LOG(NetworkCache, "(NetworkProcess) varying header mistmatch\n");
     150            LOG(NetworkCache, "(NetworkProcess) varying header mismatch\n");
    151151            return nullptr;
    152152        }
  • trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.h

    r177294 r177356  
    3232#include "ShareableResource.h"
    3333#include <Webcore/ResourceResponse.h>
    34 #include <wtf/BloomFilter.h>
    35 #include <wtf/Deque.h>
    36 #include <wtf/HashSet.h>
    3734#include <wtf/text/WTFString.h>
    3835
     
    7168
    7269private:
    73     String fileNameForURL(const WebCore::URL&);
    74     String directoryPathForCachePartition(const String&);
    75     String filePathForRequest(const WebCore::ResourceRequest&);
    76 
    7770    std::unique_ptr<NetworkCacheStorage> m_storage;
    7871};
  • trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.h

    r177294 r177356  
    3333#include <wtf/BloomFilter.h>
    3434#include <wtf/Deque.h>
     35#include <wtf/text/WTFString.h>
     36
     37#if PLATFORM(COCOA)
    3538#include <wtf/OSObjectPtr.h>
    36 #include <wtf/RetainPtr.h>
    37 #include <wtf/text/WTFString.h>
     39#endif
    3840
    3941namespace WebCore {
  • trunk/Source/WebKit2/NetworkProcess/cocoa/NetworkProcessCocoa.mm

    r177294 r177356  
    6666#if ENABLE(NETWORK_CACHE)
    6767        if (NetworkCache::shared().initialize(m_diskCacheDirectory)) {
    68             NSURLCache *URLCache = [[NSURLCache alloc] initWithMemoryCapacity:0 diskCapacity:0 diskPath:nil];
    69             [NSURLCache setSharedURLCache:URLCache];
     68            RetainPtr<NSURLCache> urlCache(adoptNS([[NSURLCache alloc] initWithMemoryCapacity:0 diskCapacity:0 diskPath:nil]));
     69            [NSURLCache setSharedURLCache:urlCache.get()];
    7070            return;
    7171        }
Note: See TracChangeset for help on using the changeset viewer.