Index: Source/modules/cachestorage/Cache.cpp |
diff --git a/Source/modules/cachestorage/Cache.cpp b/Source/modules/cachestorage/Cache.cpp |
index 73c7f8a64a7ab64cd16ffe11f1e07517eb8ae14b..5a122fd27c3fe28418fb690068efb582581a006e 100644 |
--- a/Source/modules/cachestorage/Cache.cpp |
+++ b/Source/modules/cachestorage/Cache.cpp |
@@ -277,7 +277,7 @@ private: |
WebServiceWorkerResponse m_webResponse; |
}; |
-Cache* Cache::create(WeakPtr<GlobalFetch::ScopedFetcher> fetcher, PassOwnPtr<WebServiceWorkerCache> webCache) |
+Cache* Cache::create(WeakPtrWillBeRawPtr<GlobalFetch::ScopedFetcher> fetcher, PassOwnPtr<WebServiceWorkerCache> webCache) |
{ |
return new Cache(fetcher, webCache); |
} |
@@ -389,9 +389,16 @@ WebServiceWorkerCache::QueryParams Cache::toWebQueryParams(const CacheQueryOptio |
return webQueryParams; |
} |
-Cache::Cache(WeakPtr<GlobalFetch::ScopedFetcher> fetcher, PassOwnPtr<WebServiceWorkerCache> webCache) |
+Cache::Cache(WeakPtrWillBeRawPtr<GlobalFetch::ScopedFetcher> fetcher, PassOwnPtr<WebServiceWorkerCache> webCache) |
: m_scopedFetcher(fetcher) |
- , m_webCache(webCache) { } |
+ , m_webCache(webCache) |
+{ |
+} |
+ |
+DEFINE_TRACE(Cache) |
+{ |
+ visitor->trace(m_scopedFetcher); |
+} |
ScriptPromise Cache::matchImpl(ScriptState* scriptState, const Request* request, const CacheQueryOptions& options) |
{ |