Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef StableState_h | |
| 6 #define StableState_h | |
| 7 | |
| 8 namespace WebCore { | |
| 9 | |
| 10 // http://whatwg.org/html#await-a-stable-state | |
| 11 // http://whatwg.org/html#provide-a-stable-state | |
| 12 class StableState { | |
| 13 public: | |
| 14 class Awaiter { | |
| 15 public: | |
| 16 virtual ~Awaiter(); | |
| 17 virtual void didAwaitStableState() = 0; | |
| 18 | |
| 19 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
| |
| 20 void stopAwaitingStableState(); | |
| 21 }; | |
| 22 | |
| 23 static void provide(); | |
| 24 | |
| 25 private: | |
| 26 explicit StableState(); | |
| 27 }; | |
| 28 | |
| 29 } | |
| 30 | |
| 31 #endif // StableState_h | |
| OLD | NEW |