OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #include "services/media/framework/metadata.h" |
| 6 |
| 7 namespace mojo { |
| 8 namespace media { |
| 9 |
| 10 // static |
| 11 MetadataPtr Metadata::Create( |
| 12 uint64_t duration_ns, |
| 13 const std::string& title, |
| 14 const std::string& artist, |
| 15 const std::string& album, |
| 16 const std::string& publisher, |
| 17 const std::string& genre, |
| 18 const std::string& composer) { |
| 19 return MetadataPtr(new Metadata( |
| 20 duration_ns, |
| 21 title, |
| 22 artist, |
| 23 album, |
| 24 publisher, |
| 25 genre, |
| 26 composer)); |
| 27 } |
| 28 |
| 29 Metadata::Metadata( |
| 30 uint64_t duration_ns, |
| 31 const std::string& title, |
| 32 const std::string& artist, |
| 33 const std::string& album, |
| 34 const std::string& publisher, |
| 35 const std::string& genre, |
| 36 const std::string& composer) : |
| 37 duration_ns_(duration_ns), |
| 38 title_(title), |
| 39 artist_(artist), |
| 40 album_(album), |
| 41 publisher_(publisher), |
| 42 genre_(genre), |
| 43 composer_(composer) {} |
| 44 |
| 45 Metadata::~Metadata() {} |
| 46 |
| 47 } // namespace media |
| 48 } // namespace mojo |
OLD | NEW |