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

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

Issue 2153643002: Make video codec support logic overridable via MediaClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build break due to unreachable code on windows Created 4 years, 5 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
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_properties.h" 11 #include "media/base/key_system_properties.h"
12 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 #include "media/base/video_codecs.h"
13 #include "url/gurl.h" 14 #include "url/gurl.h"
14 15
15 namespace media { 16 namespace media {
16 17
17 class MediaClient; 18 class MediaClient;
18 19
19 // Setter for the client. If a customized client is needed, it should be set 20 // Setter for the client. If a customized client is needed, it should be set
20 // early, before the client could possibly be used. 21 // early, before the client could possibly be used.
21 MEDIA_EXPORT void SetMediaClient(MediaClient* media_client); 22 MEDIA_EXPORT void SetMediaClient(MediaClient* media_client);
22 23
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual bool IsKeySystemsUpdateNeeded() = 0; 58 virtual bool IsKeySystemsUpdateNeeded() = 0;
58 59
59 // Adds properties for supported key systems. 60 // Adds properties for supported key systems.
60 virtual void AddSupportedKeySystems( 61 virtual void AddSupportedKeySystems(
61 std::vector<std::unique_ptr<KeySystemProperties>>* 62 std::vector<std::unique_ptr<KeySystemProperties>>*
62 key_systems_properties) = 0; 63 key_systems_properties) = 0;
63 64
64 // Records a domain and registry of a url to a Rappor privacy-preserving 65 // Records a domain and registry of a url to a Rappor privacy-preserving
65 // metric. See: https://www.chromium.org/developers/design-documents/rappor 66 // metric. See: https://www.chromium.org/developers/design-documents/rappor
66 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0; 67 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0;
68
69 // Returns true if the given combination of video codec, profile and level is
70 // supported. The |level| value is codec-specific.
71 virtual bool IsSupportedVideoConfig(VideoCodec codec,
72 VideoCodecProfile profile,
73 int level) = 0;
67 }; 74 };
68 75
69 } // namespace media 76 } // namespace media
70 77
71 #endif // MEDIA_BASE_MEDIA_CLIENT_H_ 78 #endif // MEDIA_BASE_MEDIA_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698