| 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 #include "modules/encryptedmedia/MediaKeyStatusMap.h" | 5 #include "modules/encryptedmedia/MediaKeyStatusMap.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ArrayBufferOrArrayBufferView.h" | 7 #include "bindings/core/v8/ArrayBufferOrArrayBufferView.h" |
| 8 #include "core/dom/DOMArrayBuffer.h" | 8 #include "core/dom/DOMArrayBuffer.h" |
| 9 #include "core/dom/DOMArrayPiece.h" | 9 #include "core/dom/DOMArrayPiece.h" |
| 10 #include "platform/wtf/text/WTFString.h" |
| 10 #include "public/platform/WebData.h" | 11 #include "public/platform/WebData.h" |
| 11 #include "wtf/text/WTFString.h" | |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <limits> | 14 #include <limits> |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 // Represents the key ID and associated status. | 18 // Represents the key ID and associated status. |
| 19 class MediaKeyStatusMap::MapEntry final | 19 class MediaKeyStatusMap::MapEntry final |
| 20 : public GarbageCollectedFinalized<MediaKeyStatusMap::MapEntry> { | 20 : public GarbageCollectedFinalized<MediaKeyStatusMap::MapEntry> { |
| 21 public: | 21 public: |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 PairIterable<ArrayBufferOrArrayBufferView, String>::IterationSource* | 149 PairIterable<ArrayBufferOrArrayBufferView, String>::IterationSource* |
| 150 MediaKeyStatusMap::StartIteration(ScriptState*, ExceptionState&) { | 150 MediaKeyStatusMap::StartIteration(ScriptState*, ExceptionState&) { |
| 151 return new MapIterationSource(this); | 151 return new MapIterationSource(this); |
| 152 } | 152 } |
| 153 | 153 |
| 154 DEFINE_TRACE(MediaKeyStatusMap) { | 154 DEFINE_TRACE(MediaKeyStatusMap) { |
| 155 visitor->Trace(entries_); | 155 visitor->Trace(entries_); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace blink | 158 } // namespace blink |
| OLD | NEW |