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

Unified Diff: Source/core/dom/Promise.h

Issue 17505004: Introduce Promises. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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
Index: Source/core/dom/Promise.h
diff --git a/Source/core/loader/UniqueIdentifier.cpp b/Source/core/dom/Promise.h
similarity index 87%
copy from Source/core/loader/UniqueIdentifier.cpp
copy to Source/core/dom/Promise.h
index 0ad56563e3e214a67acd8c53decb085ad4250cb9..2c842aa4c117365f9c564c21d18cf38dc6a1a6d4 100644
--- a/Source/core/loader/UniqueIdentifier.cpp
+++ b/Source/core/dom/Promise.h
@@ -28,17 +28,19 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "config.h"
-#include "core/loader/UniqueIdentifier.h"
+// FIXME: This file should be deleted.
+#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> {
+};
} // namespace WebCore
+
+#endif // Promise_h

Powered by Google App Engine
This is Rietveld 408576698