Index: chromecast/browser/media/cast_media_client_android.h |
diff --git a/chromecast/browser/media/cast_media_client_android.h b/chromecast/browser/media/cast_media_client_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..932a7390a03c6dcf8d7886224c5cb88a5383b2f3 |
--- /dev/null |
+++ b/chromecast/browser/media/cast_media_client_android.h |
@@ -0,0 +1,40 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROMECAST_BROWSER_MEDIA_CAST_MEDIA_CLIENT_ANDROID_H_ |
+#define CHROMECAST_BROWSER_MEDIA_CAST_MEDIA_CLIENT_ANDROID_H_ |
+ |
+#include <map> |
+ |
+#include "base/macros.h" |
+#include "media/base/android/media_client_android.h" |
+ |
+namespace chromecast { |
+namespace media { |
+ |
+class CastMediaClientAndroid : public ::media::MediaClientAndroid { |
+ public: |
+ CastMediaClientAndroid(); |
+ ~CastMediaClientAndroid() override; |
+ |
+ private: |
+ typedef std::map<std::vector<uint8_t>, ::media::MediaDrmBridgeDelegate*> |
+ DelegateMap; |
+ |
+ // ::media::MediaClientAndroid implementation: |
+ std::vector<std::pair<std::string, std::vector<uint8_t>>> |
+ GetKeySystemUUIDMappings() const override; |
+ ::media::MediaDrmBridgeDelegate* GetMediaDrmBridgeDelegate( |
+ const std::vector<uint8_t>& scheme_uuid) const override; |
+ |
+ std::vector<std::pair<std::string, std::vector<uint8_t>>> mappings_; |
+ DelegateMap delegates_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(CastMediaClientAndroid); |
+}; |
+ |
+} // namespace media |
+} // namespace chromecast |
+ |
+#endif // CHROMECAST_BROWSER_MEDIA_CAST_MEDIA_CLIENT_ANDROID_H_ |