OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/base/media_client.h" | 5 #include "media/base/media_client.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace media { | 9 namespace media { |
10 | 10 |
11 static MediaClient* g_media_client = nullptr; | 11 static MediaClient* g_media_client = nullptr; |
12 | 12 |
13 void SetMediaClient(MediaClient* media_client) { | 13 void SetMediaClient(MediaClient* media_client) { |
14 g_media_client = media_client; | 14 g_media_client = media_client; |
15 } | 15 } |
16 | 16 |
17 MediaClient* GetMediaClient() { | 17 MediaClient* GetMediaClient() { |
18 return g_media_client; | 18 return g_media_client; |
19 } | 19 } |
20 | 20 |
21 KeySystemInfoForUMA::KeySystemInfoForUMA( | |
22 const std::string& key_system, | |
23 const std::string& key_system_name_for_uma) | |
24 : key_system(key_system), | |
25 key_system_name_for_uma(key_system_name_for_uma) {} | |
26 | |
27 KeySystemInfoForUMA::~KeySystemInfoForUMA() { | |
28 } | |
29 | |
30 MediaClient::MediaClient() { | 21 MediaClient::MediaClient() { |
31 } | 22 } |
32 | 23 |
33 MediaClient::~MediaClient() { | 24 MediaClient::~MediaClient() { |
34 } | 25 } |
35 | 26 |
36 } // namespace media | 27 } // namespace media |
OLD | NEW |