| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MediaKeyStatusMap_h | 5 #ifndef MediaKeyStatusMap_h |
| 6 #define MediaKeyStatusMap_h | 6 #define MediaKeyStatusMap_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/Iterable.h" | 8 #include "bindings/core/v8/Iterable.h" |
| 9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
| 11 #include "core/dom/DOMArrayPiece.h" | 11 #include "core/dom/DOMArrayPiece.h" |
| 12 #include "platform/heap/Heap.h" | 12 #include "platform/heap/Heap.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class ExceptionState; | 16 class ExceptionState; |
| 17 class Iterator; | |
| 18 class ScriptState; | 17 class ScriptState; |
| 19 class WebData; | 18 class WebData; |
| 20 | 19 |
| 21 // Represents a read-only map (to JavaScript) of key IDs and their current | 20 // Represents a read-only map (to JavaScript) of key IDs and their current |
| 22 // status known to a particular session. Since it can be updated any time there | 21 // status known to a particular session. Since it can be updated any time there |
| 23 // is a keychange event, iteration order and completeness is not guaranteed | 22 // is a keychange event, iteration order and completeness is not guaranteed |
| 24 // if the event loop runs. | 23 // if the event loop runs. |
| 25 class MediaKeyStatusMap final | 24 class MediaKeyStatusMap final |
| 26 : public GarbageCollected<MediaKeyStatusMap>, | 25 : public GarbageCollected<MediaKeyStatusMap>, |
| 27 public ScriptWrappable, | 26 public ScriptWrappable, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 56 IterationSource* startIteration(ScriptState*, ExceptionState&) override; | 55 IterationSource* startIteration(ScriptState*, ExceptionState&) override; |
| 57 | 56 |
| 58 size_t indexOf(const DOMArrayPiece& keyId) const; | 57 size_t indexOf(const DOMArrayPiece& keyId) const; |
| 59 | 58 |
| 60 MediaKeyStatusMapType m_entries; | 59 MediaKeyStatusMapType m_entries; |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace blink | 62 } // namespace blink |
| 64 | 63 |
| 65 #endif // MediaKeyStatusMap_h | 64 #endif // MediaKeyStatusMap_h |
| OLD | NEW |