| 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/Maplike.h" | 8 #include "bindings/core/v8/Maplike.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "bindings/core/v8/UnionTypesCore.h" | 10 #include "bindings/core/v8/UnionTypesCore.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 public: | 36 public: |
| 37 MediaKeyStatusMap() { } | 37 MediaKeyStatusMap() { } |
| 38 | 38 |
| 39 void clear(); | 39 void clear(); |
| 40 void addEntry(WebData source, const String& status); | 40 void addEntry(WebData source, const String& status); |
| 41 const MapEntry& at(size_t) const; | 41 const MapEntry& at(size_t) const; |
| 42 | 42 |
| 43 // IDL attributes / methods | 43 // IDL attributes / methods |
| 44 size_t size() const { return m_entries.size(); } | 44 size_t size() const { return m_entries.size(); } |
| 45 | 45 |
| 46 virtual void trace(Visitor*); | 46 DECLARE_VIRTUAL_TRACE(); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 IterationSource* startIteration(ScriptState*, ExceptionState&) override; | 49 IterationSource* startIteration(ScriptState*, ExceptionState&) override; |
| 50 bool getMapEntry(ScriptState*, const ArrayBufferOrArrayBufferView&, String&,
ExceptionState&) override; | 50 bool getMapEntry(ScriptState*, const ArrayBufferOrArrayBufferView&, String&,
ExceptionState&) override; |
| 51 | 51 |
| 52 size_t indexOf(const DOMArrayPiece& key) const; | 52 size_t indexOf(const DOMArrayPiece& key) const; |
| 53 | 53 |
| 54 MapType m_entries; | 54 MapType m_entries; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // MediaKeyStatusMap_h | 59 #endif // MediaKeyStatusMap_h |
| OLD | NEW |