Index: Source/core/html/StableState.h |
diff --git a/Source/core/html/StableState.h b/Source/core/html/StableState.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d382553d8ca5418c0598c58b44f76bfb6be7293d |
--- /dev/null |
+++ b/Source/core/html/StableState.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef StableState_h |
+#define StableState_h |
+ |
+namespace WebCore { |
+ |
+// http://whatwg.org/html#await-a-stable-state |
+// http://whatwg.org/html#provide-a-stable-state |
+class StableState { |
+public: |
+ class Awaiter { |
+ public: |
+ virtual ~Awaiter(); |
+ virtual void didAwaitStableState() = 0; |
+ |
+ void awaitStableState(); |
philipj_slow
2014/02/04 13:45:46
I put this here to make the call sites slightly pr
philipj_slow
2014/02/04 15:10:49
I've made it so in PS2, so you can see exactly wha
|
+ void stopAwaitingStableState(); |
+ }; |
+ |
+ static void provide(); |
+ |
+private: |
+ explicit StableState(); |
+}; |
+ |
+} |
+ |
+#endif // StableState_h |