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

Unified Diff: third_party/WebKit/Source/modules/fetch/GlobalFetch.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, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp b/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
index 323b05d6e0f6c7b70d27bd26aa0406c746817b61..46dda65000c30690fd313528b17cfe7ee22bc2ff 100644
--- a/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
+++ b/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
@@ -18,15 +18,15 @@ namespace blink {
namespace {
template <typename T>
-class GlobalFetchImpl final : public NoBaseWillBeGarbageCollectedFinalized<GlobalFetchImpl<T>>, public GlobalFetch::ScopedFetcher, public WillBeHeapSupplement<T> {
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(GlobalFetchImpl);
+class GlobalFetchImpl final : public GarbageCollectedFinalized<GlobalFetchImpl<T>>, public GlobalFetch::ScopedFetcher, public HeapSupplement<T> {
+ USING_GARBAGE_COLLECTED_MIXIN(GlobalFetchImpl);
public:
- static WeakPtrWillBeRawPtr<ScopedFetcher> from(T& supplementable, ExecutionContext* executionContext)
+ static RawPtr<ScopedFetcher> from(T& supplementable, ExecutionContext* executionContext)
{
- GlobalFetchImpl* supplement = static_cast<GlobalFetchImpl*>(WillBeHeapSupplement<T>::from(supplementable, supplementName()));
+ GlobalFetchImpl* supplement = static_cast<GlobalFetchImpl*>(HeapSupplement<T>::from(supplementable, supplementName()));
if (!supplement) {
supplement = new GlobalFetchImpl(executionContext);
- WillBeHeapSupplement<T>::provideTo(supplementable, supplementName(), adoptPtrWillBeNoop(supplement));
+ HeapSupplement<T>::provideTo(supplementable, supplementName(), adoptPtrWillBeNoop(supplement));
}
#if ENABLE(OILPAN)
return supplement;
@@ -55,7 +55,7 @@ public:
{
visitor->trace(m_fetchManager);
ScopedFetcher::trace(visitor);
- WillBeHeapSupplement<T>::trace(visitor);
+ HeapSupplement<T>::trace(visitor);
}
private:
@@ -68,7 +68,7 @@ private:
}
static const char* supplementName() { return "GlobalFetch"; }
- PersistentWillBeMember<FetchManager> m_fetchManager;
+ Member<FetchManager> m_fetchManager;
#if !ENABLE(OILPAN)
WeakPtrFactory<ScopedFetcher> m_weakFactory;
#endif
@@ -80,12 +80,12 @@ GlobalFetch::ScopedFetcher::~ScopedFetcher()
{
}
-WeakPtrWillBeRawPtr<GlobalFetch::ScopedFetcher> GlobalFetch::ScopedFetcher::from(DOMWindow& window)
+RawPtr<GlobalFetch::ScopedFetcher> GlobalFetch::ScopedFetcher::from(DOMWindow& window)
{
return GlobalFetchImpl<LocalDOMWindow>::from(toLocalDOMWindow(window), window.getExecutionContext());
}
-WeakPtrWillBeRawPtr<GlobalFetch::ScopedFetcher> GlobalFetch::ScopedFetcher::from(WorkerGlobalScope& worker)
+RawPtr<GlobalFetch::ScopedFetcher> GlobalFetch::ScopedFetcher::from(WorkerGlobalScope& worker)
{
return GlobalFetchImpl<WorkerGlobalScope>::from(worker, worker.getExecutionContext());
}
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/GlobalFetch.h ('k') | third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698