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

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

Issue 16838012: [ABANDONED] Implement 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/PromiseResolver.h
diff --git a/Source/core/loader/UniqueIdentifier.cpp b/Source/core/dom/PromiseResolver.h
similarity index 87%
copy from Source/core/loader/UniqueIdentifier.cpp
copy to Source/core/dom/PromiseResolver.h
index 0ad56563e3e214a67acd8c53decb085ad4250cb9..51188fb84820cd02f063376afb06b68a31e4fb82 100644
--- a/Source/core/loader/UniqueIdentifier.cpp
+++ b/Source/core/dom/PromiseResolver.h
@@ -28,17 +28,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "config.h"
-#include "core/loader/UniqueIdentifier.h"
+#ifndef PromiseResolver_h
+#define PromiseResolver_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 PromiseResolver : public RefCounted<PromiseResolver> {
+};
} // namespace WebCore
+#endif // PromiseResolver_h

Powered by Google App Engine
This is Rietveld 408576698