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

Side by Side Diff: Source/platform/UIWebThreadSupportingGC.h

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(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 */
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerThreadStartupData.cpp ('k') | Source/platform/UIWebThreadSupportingGC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698