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

Side by Side Diff: media/base/media_client.h

Issue 1430063003: use MEDIA_BLINK_EXPORT in media/blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | media/blink/BUILD.gn » ('j') | media/blink/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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)
ddorwin 2015/11/06 22:04:23 This feels wrong. First, two different modules do
hubbe 2015/11/06 22:19:40 There are actually several things wrong here IMHO.
ddorwin 2015/11/06 22:49:01 I don't think we want to friend all call sites - i
xhwang 2015/11/06 23:43:18 GetMediaClient was added to be used within the med
hubbe 2015/11/06 23:52:11 Acknowledged.
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
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_
OLDNEW
« no previous file with comments | « no previous file | media/blink/BUILD.gn » ('j') | media/blink/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698