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 #ifndef MEDIA_BASE_MEDIA_CLIENT_H_ | 5 #ifndef MEDIA_BASE_MEDIA_CLIENT_H_ |
6 #define MEDIA_BASE_MEDIA_CLIENT_H_ | 6 #define MEDIA_BASE_MEDIA_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "media/base/key_system_info.h" | 11 #include "media/base/key_system_info.h" |
12 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 class MediaClient; | 17 class MediaClient; |
18 | 18 |
19 // Setter for the client. If a customized client is needed, it should be set | 19 // Setter for the client. If a customized client is needed, it should be set |
20 // early, before the client could possibly be used. | 20 // early, before the client could possibly be used. |
21 MEDIA_EXPORT void SetMediaClient(MediaClient* media_client); | 21 MEDIA_EXPORT void SetMediaClient(MediaClient* media_client); |
22 | 22 |
23 // Media's embedder API should only be used by media. | 23 // Media's embedder API should only be used by media. |
24 #if defined(MEDIA_IMPLEMENTATION) | 24 #if defined(MEDIA_IMPLEMENTATION) || defined(MEDIA_BLINK_IMPLEMENTATION) |
25 // Getter for the client. Returns NULL if no customized client is needed. | 25 // Getter for the client. Returns NULL if no customized client is needed. |
26 MEDIA_EXPORT MediaClient* GetMediaClient(); | 26 MEDIA_EXPORT MediaClient* GetMediaClient(); |
27 #endif | 27 #endif |
28 | 28 |
29 struct MEDIA_EXPORT KeySystemInfoForUMA { | 29 struct MEDIA_EXPORT KeySystemInfoForUMA { |
30 KeySystemInfoForUMA(const std::string& key_system, | 30 KeySystemInfoForUMA(const std::string& key_system, |
31 const std::string& key_system_name_for_uma, | 31 const std::string& key_system_name_for_uma, |
32 bool reports_key_system_support_to_uma); | 32 bool reports_key_system_support_to_uma); |
33 ~KeySystemInfoForUMA(); | 33 ~KeySystemInfoForUMA(); |
34 | 34 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 std::vector<KeySystemInfo>* key_systems_info) = 0; | 68 std::vector<KeySystemInfo>* key_systems_info) = 0; |
69 | 69 |
70 // Records a domain and registry of a url to a Rappor privacy-preserving | 70 // Records a domain and registry of a url to a Rappor privacy-preserving |
71 // metric. See: https://www.chromium.org/developers/design-documents/rappor | 71 // metric. See: https://www.chromium.org/developers/design-documents/rappor |
72 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0; | 72 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0; |
73 }; | 73 }; |
74 | 74 |
75 } // namespace media | 75 } // namespace media |
76 | 76 |
77 #endif // MEDIA_BASE_MEDIA_CLIENT_H_ | 77 #endif // MEDIA_BASE_MEDIA_CLIENT_H_ |
OLD | NEW |