Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Side by Side Diff: third_party/WebKit/Source/modules/cachestorage/Cache.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/cachestorage/Cache.h" 5 #include "modules/cachestorage/Cache.h"
6 6
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" 7 #include "bindings/core/v8/CallbackPromiseAdapter.h"
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 331 }
332 332
333 private: 333 private:
334 const size_t m_index; 334 const size_t m_index;
335 Member<BarrierCallbackForPut> m_barrierCallback; 335 Member<BarrierCallbackForPut> m_barrierCallback;
336 336
337 WebServiceWorkerRequest m_webRequest; 337 WebServiceWorkerRequest m_webRequest;
338 WebServiceWorkerResponse m_webResponse; 338 WebServiceWorkerResponse m_webResponse;
339 }; 339 };
340 340
341 Cache* Cache::create(WeakPtrWillBeRawPtr<GlobalFetch::ScopedFetcher> fetcher, Pa ssOwnPtr<WebServiceWorkerCache> webCache) 341 Cache* Cache::create(RawPtr<GlobalFetch::ScopedFetcher> fetcher, PassOwnPtr<WebS erviceWorkerCache> webCache)
342 { 342 {
343 return new Cache(fetcher, webCache); 343 return new Cache(fetcher, webCache);
344 } 344 }
345 345
346 ScriptPromise Cache::match(ScriptState* scriptState, const RequestInfo& request, const CacheQueryOptions& options, ExceptionState& exceptionState) 346 ScriptPromise Cache::match(ScriptState* scriptState, const RequestInfo& request, const CacheQueryOptions& options, ExceptionState& exceptionState)
347 { 347 {
348 ASSERT(!request.isNull()); 348 ASSERT(!request.isNull());
349 if (request.isRequest()) 349 if (request.isRequest())
350 return matchImpl(scriptState, request.getAsRequest(), options); 350 return matchImpl(scriptState, request.getAsRequest(), options);
351 Request* newRequest = Request::create(scriptState, request.getAsUSVString(), exceptionState); 351 Request* newRequest = Request::create(scriptState, request.getAsUSVString(), exceptionState);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 WebServiceWorkerCache::QueryParams Cache::toWebQueryParams(const CacheQueryOptio ns& options) 443 WebServiceWorkerCache::QueryParams Cache::toWebQueryParams(const CacheQueryOptio ns& options)
444 { 444 {
445 WebServiceWorkerCache::QueryParams webQueryParams; 445 WebServiceWorkerCache::QueryParams webQueryParams;
446 webQueryParams.ignoreSearch = options.ignoreSearch(); 446 webQueryParams.ignoreSearch = options.ignoreSearch();
447 webQueryParams.ignoreMethod = options.ignoreMethod(); 447 webQueryParams.ignoreMethod = options.ignoreMethod();
448 webQueryParams.ignoreVary = options.ignoreVary(); 448 webQueryParams.ignoreVary = options.ignoreVary();
449 webQueryParams.cacheName = options.cacheName(); 449 webQueryParams.cacheName = options.cacheName();
450 return webQueryParams; 450 return webQueryParams;
451 } 451 }
452 452
453 Cache::Cache(WeakPtrWillBeRawPtr<GlobalFetch::ScopedFetcher> fetcher, PassOwnPtr <WebServiceWorkerCache> webCache) 453 Cache::Cache(RawPtr<GlobalFetch::ScopedFetcher> fetcher, PassOwnPtr<WebServiceWo rkerCache> webCache)
454 : m_scopedFetcher(fetcher) 454 : m_scopedFetcher(fetcher)
455 , m_webCache(webCache) 455 , m_webCache(webCache)
456 { 456 {
457 } 457 }
458 458
459 DEFINE_TRACE(Cache) 459 DEFINE_TRACE(Cache)
460 { 460 {
461 visitor->trace(m_scopedFetcher); 461 visitor->trace(m_scopedFetcher);
462 } 462 }
463 463
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 m_webCache->dispatchKeys(new CacheWithRequestsCallbacks(resolver), 0, toWebQ ueryParams(options)); 590 m_webCache->dispatchKeys(new CacheWithRequestsCallbacks(resolver), 0, toWebQ ueryParams(options));
591 return promise; 591 return promise;
592 } 592 }
593 593
594 WebServiceWorkerCache* Cache::webCache() const 594 WebServiceWorkerCache* Cache::webCache() const
595 { 595 {
596 return m_webCache.get(); 596 return m_webCache.get();
597 } 597 }
598 598
599 } // namespace blink 599 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698