Index: Source/core/dom/Promise.h |
diff --git a/Source/core/loader/UniqueIdentifier.cpp b/Source/core/dom/Promise.h |
similarity index 89% |
copy from Source/core/loader/UniqueIdentifier.cpp |
copy to Source/core/dom/Promise.h |
index 0ad56563e3e214a67acd8c53decb085ad4250cb9..7d82d7bdf17de191292846a4d0cb2e5b1a5e4c97 100644 |
--- a/Source/core/loader/UniqueIdentifier.cpp |
+++ b/Source/core/dom/Promise.h |
@@ -28,17 +28,18 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#include "config.h" |
-#include "core/loader/UniqueIdentifier.h" |
+#ifndef Promise_h |
+#define Promise_h |
-namespace WebCore { |
+#include "wtf/RefCounted.h" |
-static unsigned long s_uniqueIdentifier = 0; |
+namespace WebCore { |
-unsigned long createUniqueIdentifier() |
-{ |
- return ++s_uniqueIdentifier; |
-} |
+// An empty class. This is here because a generated file use it. |
+class Promise : public RefCounted<Promise> { |
+}; |
abarth-chromium
2013/06/17 18:05:06
We should change the code generator not to need it
yhirano
2013/06/18 08:56:15
Will do in another CL.
|
} // namespace WebCore |
+ |
+#endif // Promise_h |