| 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/mediasession/MediaMetadata.h" | 5 #include "modules/mediasession/MediaMetadata.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
| 9 #include "bindings/core/v8/ToV8ForCore.h" | 9 #include "bindings/core/v8/ToV8ForCore.h" |
| 10 #include "bindings/core/v8/V8BindingForCore.h" |
| 10 #include "core/dom/ExecutionContext.h" | 11 #include "core/dom/ExecutionContext.h" |
| 11 #include "core/dom/TaskRunnerHelper.h" | 12 #include "core/dom/TaskRunnerHelper.h" |
| 12 #include "modules/mediasession/MediaImage.h" | 13 #include "modules/mediasession/MediaImage.h" |
| 13 #include "modules/mediasession/MediaMetadataInit.h" | 14 #include "modules/mediasession/MediaMetadataInit.h" |
| 14 #include "modules/mediasession/MediaSession.h" | 15 #include "modules/mediasession/MediaSession.h" |
| 15 | 16 |
| 16 namespace blink { | 17 namespace blink { |
| 17 | 18 |
| 18 // static | 19 // static |
| 19 MediaMetadata* MediaMetadata::Create(ScriptState* script_state, | 20 MediaMetadata* MediaMetadata::Create(ScriptState* script_state, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 DCHECK(!exception_state.HadException()); | 120 DCHECK(!exception_state.HadException()); |
| 120 artwork_.Swap(processed_artwork); | 121 artwork_.Swap(processed_artwork); |
| 121 } | 122 } |
| 122 | 123 |
| 123 DEFINE_TRACE(MediaMetadata) { | 124 DEFINE_TRACE(MediaMetadata) { |
| 124 visitor->Trace(artwork_); | 125 visitor->Trace(artwork_); |
| 125 visitor->Trace(session_); | 126 visitor->Trace(session_); |
| 126 } | 127 } |
| 127 | 128 |
| 128 } // namespace blink | 129 } // namespace blink |
| OLD | NEW |