Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: services/media/framework/metadata.cc

Issue 1577953002: Motown in-proc streaming framework used to implement media services. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sync Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/media/framework/metadata.h ('k') | services/media/framework/models/active_sink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « services/media/framework/metadata.h ('k') | services/media/framework/models/active_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698