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

Side by Side Diff: Source/platform/WebThreadOwnPtr.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
« no previous file with comments | « Source/platform/UIWebThreadSupportingGC.cpp ('k') | Source/platform/WebThreadPtr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef WEBTHREADOWNPTR
2 #define WEBTHREADOWNPTR
3
4 #include "WebThreadPtr.h"
5
6 namespace blink {
7
8 class WebThreadOwnPtr : public WebThreadPtr {
9 public:
10 WebThreadOwnPtr(WebThread* t) : m_ptr(adoptPtr(t)) {}
11 virtual WebThread& operator*() const { return *m_ptr.get(); }
12 virtual WebThread* operator->() const { return m_ptr.get(); }
13 virtual void clear() { m_ptr.clear(); }
14
15 private:
16 OwnPtr<WebThread> m_ptr;
17 };
18
19 }
20
21 #endif /* ifndef WEBTHREADOWNPTR */
OLDNEW
« no previous file with comments | « Source/platform/UIWebThreadSupportingGC.cpp ('k') | Source/platform/WebThreadPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698