Chromium Code Reviews| Index: Source/modules/imagebitmap/ImageBitmapFactories.h |
| diff --git a/Source/modules/imagebitmap/ImageBitmapFactories.h b/Source/modules/imagebitmap/ImageBitmapFactories.h |
| index c5e8103cd9da611b992b4bd508c5917195ce4c15..cba1648aa6623a7a83d8aadd638e5e28ada84aea 100644 |
| --- a/Source/modules/imagebitmap/ImageBitmapFactories.h |
| +++ b/Source/modules/imagebitmap/ImageBitmapFactories.h |
| @@ -55,7 +55,7 @@ class ImageBitmap; |
| class ImageData; |
| class ExecutionContext; |
| -class ImageBitmapFactories FINAL : public Supplement<DOMWindow>, public WorkerSupplement { |
| +class ImageBitmapFactories : public Supplement<DOMWindow> { |
| class ImageBitmapLoader; |
| @@ -79,6 +79,9 @@ public: |
| virtual ~ImageBitmapFactories() { } |
| +protected: |
| + static const char* supplementName(); |
| + |
| private: |
| class ImageBitmapLoader FINAL : public RefCounted<ImageBitmapLoader>, public FileReaderLoaderClient { |
| public: |
| @@ -109,17 +112,26 @@ private: |
| IntRect m_cropRect; |
| }; |
| - static const char* supplementName(); |
| static ImageBitmapFactories& from(EventTarget&); |
| - template <class T> |
| - static ImageBitmapFactories& fromInternal(T&); |
| + static ImageBitmapFactories& fromInternal(DOMWindow&); |
| void addLoader(PassRefPtr<ImageBitmapLoader>); |
| HashSet<RefPtr<ImageBitmapLoader> > m_pendingLoaders; |
| }; |
| +class WorkerGlobalScopeImageBitmapFactories FINAL : public ImageBitmapFactories, public NoBaseWillBeGarbageCollectedFinalized<WorkerGlobalScopeImageBitmapFactories>, public WorkerSupplement { |
|
Mads Ager (chromium)
2014/02/26 13:09:08
Please make the garbage collected base class the l
sof
2014/02/26 14:36:25
Done. I think we just have to accept the quirky fo
|
| +public: |
| + virtual ~WorkerGlobalScopeImageBitmapFactories() { } |
| + |
| + virtual void trace(Visitor*); |
| + |
| +private: |
| + friend class ImageBitmapFactories; |
| + static ImageBitmapFactories& fromInternal(WorkerGlobalScope&); |
| +}; |
| + |
| } // namespace WebCore |
| #endif // ImageBitmapFactories_h |