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( | 21 KeySystemInfoForUMA::KeySystemInfoForUMA( |
22 const std::string& key_system, | 22 const std::string& key_system, |
23 const std::string& key_system_name_for_uma, | 23 const std::string& key_system_name_for_uma) |
24 bool reports_key_system_support_to_uma) | |
25 : key_system(key_system), | 24 : key_system(key_system), |
26 key_system_name_for_uma(key_system_name_for_uma), | 25 key_system_name_for_uma(key_system_name_for_uma) {} |
27 reports_key_system_support_to_uma(reports_key_system_support_to_uma) { | |
28 } | |
29 | 26 |
30 KeySystemInfoForUMA::~KeySystemInfoForUMA() { | 27 KeySystemInfoForUMA::~KeySystemInfoForUMA() { |
31 } | 28 } |
32 | 29 |
33 MediaClient::MediaClient() { | 30 MediaClient::MediaClient() { |
34 } | 31 } |
35 | 32 |
36 MediaClient::~MediaClient() { | 33 MediaClient::~MediaClient() { |
37 } | 34 } |
38 | 35 |
39 } // namespace media | 36 } // namespace media |
OLD | NEW |