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

Unified Diff: public/platform/WebPrivatePtr.h

Issue 462843003: Cleanup namespace usage in public/platform/{Web[P-W]*,linux/*}.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « public/platform/WebPrerender.h ('k') | public/platform/WebRTCConfiguration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPrivatePtr.h
diff --git a/public/platform/WebPrivatePtr.h b/public/platform/WebPrivatePtr.h
index 0d60916ed111a599b618676437fe7ad55dcb897a..360f646d876582ef2c3c315f33f42a21adfb5735 100644
--- a/public/platform/WebPrivatePtr.h
+++ b/public/platform/WebPrivatePtr.h
@@ -34,9 +34,6 @@
#include "WebCommon.h"
#if INSIDE_BLINK
-
-namespace blink { template<typename T> class TreeShared; }
-
#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/TypeTraits.h"
@@ -53,8 +50,8 @@ enum LifetimeManagementType {
template<typename T>
class LifetimeOf {
- static const bool isGarbageCollected = WTF::IsSubclassOfTemplate<T, blink::GarbageCollected>::value;
- static const bool isRefCountedGarbageCollected = WTF::IsSubclassOfTemplate<T, blink::RefCountedGarbageCollected>::value;
+ static const bool isGarbageCollected = WTF::IsSubclassOfTemplate<T, GarbageCollected>::value;
+ static const bool isRefCountedGarbageCollected = WTF::IsSubclassOfTemplate<T, RefCountedGarbageCollected>::value;
public:
static const LifetimeManagementType value =
!isGarbageCollected ? RefCountedLifetime :
@@ -106,7 +103,7 @@ public:
}
if (!m_handle)
- m_handle = new blink::Persistent<T>();
+ m_handle = new Persistent<T>();
(*m_handle) = val;
}
@@ -125,7 +122,7 @@ public:
}
private:
- blink::Persistent<T>* m_handle;
+ Persistent<T>* m_handle;
};
template<typename T>
@@ -184,11 +181,11 @@ private:
// // Methods that are used only by other Blink classes should only be
// // declared when INSIDE_BLINK is set.
// #if INSIDE_BLINK
-// WebFoo(const WTF::PassRefPtr<blink::Foo>&);
+// WebFoo(const WTF::PassRefPtr<Foo>&);
// #endif
//
// private:
-// WebPrivatePtr<blink::Foo> m_private;
+// WebPrivatePtr<Foo> m_private;
// };
//
// // WebFoo.cpp
« no previous file with comments | « public/platform/WebPrerender.h ('k') | public/platform/WebRTCConfiguration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698