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

Unified Diff: Source/modules/fetch/GlobalFetch.h

Issue 1320563003: Oilpan: avoid using WeakPtr<> for heap residing objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert unrelated unit test addition Created 5 years, 4 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: Source/modules/fetch/GlobalFetch.h
diff --git a/Source/modules/fetch/GlobalFetch.h b/Source/modules/fetch/GlobalFetch.h
index db1e6b5f7eb2eb1b66b4fab1e1ef1857ca9d5242..81bbe611a4c39a646a76e4313a365634119b894f 100644
--- a/Source/modules/fetch/GlobalFetch.h
+++ b/Source/modules/fetch/GlobalFetch.h
@@ -20,14 +20,14 @@ class WorkerGlobalScope;
class GlobalFetch {
public:
- class MODULES_EXPORT ScopedFetcher {
+ class MODULES_EXPORT ScopedFetcher : public WillBeGarbageCollectedMixin {
public:
virtual ~ScopedFetcher();
virtual ScriptPromise fetch(ScriptState*, const RequestInfo&, const Dictionary&, ExceptionState&) = 0;
- static WeakPtr<ScopedFetcher> from(DOMWindow&);
- static WeakPtr<ScopedFetcher> from(WorkerGlobalScope&);
+ static WeakPtrWillBeRawPtr<ScopedFetcher> from(DOMWindow&);
+ static WeakPtrWillBeRawPtr<ScopedFetcher> from(WorkerGlobalScope&);
DECLARE_VIRTUAL_TRACE();
};

Powered by Google App Engine
This is Rietveld 408576698