Index: content/common/android/media_metadata_proxy.h |
diff --git a/content/common/android/media_metadata_proxy.h b/content/common/android/media_metadata_proxy.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7324d4ec95b14232cba3d37b3b951f39e7d8fea5 |
--- /dev/null |
+++ b/content/common/android/media_metadata_proxy.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2016 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 CONTENT_COMMON_ANDROID_MEDIA_METADATA_PROXY_H_ |
+#define CONTENT_COMMON_ANDROID_MEDIA_METADATA_PROXY_H_ |
+ |
+#include <jni.h> |
+ |
+#include "base/android/scoped_java_ref.h" |
+ |
+namespace content { |
+ |
+struct MediaMetadata; |
+ |
+class MediaMetadataProxy { |
Ted C
2016/03/01 17:18:11
The common naming would be MediaMetadataAndroid.
mlamouri (slow - plz ping)
2016/03/16 15:47:15
Isn't that mostly used for android implementations
Ted C
2016/03/16 16:55:58
Nope, web_contents_android, profile_android are pr
mlamouri (slow - plz ping)
2016/03/16 20:31:54
Ok. Done :)
|
+ public: |
+ static base::android::ScopedJavaLocalRef<jobject> GetJavaObject( |
Ted C
2016/03/01 17:18:11
I would use CreateJavaObject, Get implies reuse to
mlamouri (slow - plz ping)
2016/03/16 15:47:15
Done.
|
+ JNIEnv* env, const MediaMetadata& metadata); |
+ |
+ static bool Register(JNIEnv* env); |
+ |
+ private: |
+ DISALLOW_IMPLICIT_CONSTRUCTORS(MediaMetadataProxy); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_COMMON_ANDROID_MEDIA_METADATA_PROXY_H_ |