Changeset 177356 in webkit
- Timestamp:
- Dec 16, 2014 2:08:13 AM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r177332 r177356 1 2014-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 1 15 2014-12-15 Bartlomiej Gajda <b.gajda@samsung.com> 2 16 -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp
r177294 r177356 148 148 149 149 if (!verifyVaryingRequestHeaders(varyingRequestHeaders, request)) { 150 LOG(NetworkCache, "(NetworkProcess) varying header mis tmatch\n");150 LOG(NetworkCache, "(NetworkProcess) varying header mismatch\n"); 151 151 return nullptr; 152 152 } -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.h
r177294 r177356 32 32 #include "ShareableResource.h" 33 33 #include <Webcore/ResourceResponse.h> 34 #include <wtf/BloomFilter.h>35 #include <wtf/Deque.h>36 #include <wtf/HashSet.h>37 34 #include <wtf/text/WTFString.h> 38 35 … … 71 68 72 69 private: 73 String fileNameForURL(const WebCore::URL&);74 String directoryPathForCachePartition(const String&);75 String filePathForRequest(const WebCore::ResourceRequest&);76 77 70 std::unique_ptr<NetworkCacheStorage> m_storage; 78 71 }; -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.h
r177294 r177356 33 33 #include <wtf/BloomFilter.h> 34 34 #include <wtf/Deque.h> 35 #include <wtf/text/WTFString.h> 36 37 #if PLATFORM(COCOA) 35 38 #include <wtf/OSObjectPtr.h> 36 #include <wtf/RetainPtr.h> 37 #include <wtf/text/WTFString.h> 39 #endif 38 40 39 41 namespace WebCore { -
trunk/Source/WebKit2/NetworkProcess/cocoa/NetworkProcessCocoa.mm
r177294 r177356 66 66 #if ENABLE(NETWORK_CACHE) 67 67 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()]; 70 70 return; 71 71 }
Note: See TracChangeset
for help on using the changeset viewer.