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

Unified Diff: Source/platform/WebThreadRawPtr.h

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 2 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
« no previous file with comments | « Source/platform/WebThreadPtr.h ('k') | Source/platform/WebThreadSupportingGC.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/WebThreadRawPtr.h
diff --git a/Source/platform/WebThreadRawPtr.h b/Source/platform/WebThreadRawPtr.h
new file mode 100644
index 0000000000000000000000000000000000000000..0307cc29e0dfc03df9d53f9069b9d68c0b7de912
--- /dev/null
+++ b/Source/platform/WebThreadRawPtr.h
@@ -0,0 +1,18 @@
+#ifndef WEBTHREADRAWPTR
+#define WEBTHREADRAWPTR
+
+namespace blink {
+
+class WebThreadRawPtr : public WebThreadPtr {
+ public:
+ WebThreadRawPtr(WebThread* t) : m_ptr(t) {}
+ virtual WebThread& operator*() const { return *m_ptr; }
+ virtual WebThread* operator->() const { return m_ptr; }
+
+ private:
+ WebThread* m_ptr;
+};
+
+}
+
+#endif /* ifndef WEBTHREADRAWPTR */
« no previous file with comments | « Source/platform/WebThreadPtr.h ('k') | Source/platform/WebThreadSupportingGC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698