Index: media/base/android/media_client_android.cc |
diff --git a/media/base/android/media_client_android.cc b/media/base/android/media_client_android.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c03701fb69b2506f99341ea5d3ae4032d559b08c |
--- /dev/null |
+++ b/media/base/android/media_client_android.cc |
@@ -0,0 +1,46 @@ |
+// 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. |
+ |
+#include "media/base/android/media_client_android.h" |
+ |
+#include "base/logging.h" |
+#include "base/stl_util.h" |
+ |
+namespace media { |
+ |
+static MediaClientAndroid* g_media_client = nullptr; |
+ |
+void SetMediaClientAndroid(MediaClientAndroid* media_client) { |
+ DCHECK(!g_media_client); |
+ g_media_client = media_client; |
+} |
+ |
+MediaClientAndroid* GetMediaClientAndroid() { |
+ return g_media_client; |
+} |
+ |
+MediaClientAndroid::MediaClientAndroid() { |
+} |
+ |
+MediaClientAndroid::~MediaClientAndroid() { |
+} |
+ |
+const base::hash_map<std::string, UUID>& |
+MediaClientAndroid::GetKeySystemUUIDMappings() const { |
+ return key_system_uuid_map_; |
+} |
+ |
+media::MediaDrmBridgeDelegate* MediaClientAndroid::GetMediaDrmBridgeDelegate( |
+ const std::vector<uint8_t>& scheme_uuid) const { |
+ return nullptr; |
+} |
+ |
+void MediaClientAndroid::AddKeySystemUUIDMapping( |
+ const std::string& key_system, const UUID& scheme_uuid) { |
+ DCHECK(!ContainsKey(key_system_uuid_map_, key_system)) |
+ << "Shouldn't overwrite an existing key system."; |
+ key_system_uuid_map_[key_system] = scheme_uuid; |
+} |
+ |
+} // namespace media |