| OLD | NEW |
| (Empty) | |
| 1 #ifndef UIWEBTHREADSUPPORTINGGC |
| 2 #define UIWEBTHREADSUPPORTINGGC |
| 3 |
| 4 #include "WebThreadSupportingGC.h" |
| 5 #include "wtf/HashMap.h" |
| 6 |
| 7 namespace blink { |
| 8 |
| 9 class PLATFORM_EXPORT UIWebThreadSupportingGC : public WebThreadSupportingGC { |
| 10 WTF_MAKE_NONCOPYABLE(UIWebThreadSupportingGC); |
| 11 public: |
| 12 static PassOwnPtr<UIWebThreadSupportingGC> create(const char* name); |
| 13 static UIWebThreadSupportingGC* get(WebThread* t); |
| 14 |
| 15 virtual void attachGC() override; |
| 16 virtual void detachGC() override; |
| 17 |
| 18 private: |
| 19 // should never create 2 UIWebThreadSupportingGCs pointing to the same threa
d |
| 20 UIWebThreadSupportingGC(const char* name); |
| 21 UIWebThreadSupportingGC(WebThread* t); |
| 22 |
| 23 typedef HashMap<WebThread*, UIWebThreadSupportingGC*> ThreadMap; |
| 24 static ThreadMap* m_threadMap; |
| 25 |
| 26 int m_attachedThreads; |
| 27 }; |
| 28 |
| 29 } |
| 30 |
| 31 #endif /* ifndef UIWEBTHREADSUPPORTINGGC */ |
| OLD | NEW |