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

Side by Side Diff: content/common/android/media_metadata_android.h

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_COMMON_ANDROID_MEDIA_METADATA_ANDROID_H_ 5 #ifndef CONTENT_COMMON_ANDROID_MEDIA_METADATA_ANDROID_H_
6 #define CONTENT_COMMON_ANDROID_MEDIA_METADATA_ANDROID_H_ 6 #define CONTENT_COMMON_ANDROID_MEDIA_METADATA_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 struct MediaMetadata; 14 struct MediaMetadata;
15 15
16 class MediaMetadataAndroid { 16 class MediaMetadataAndroid {
17 public: 17 public:
18 static base::android::ScopedJavaLocalRef<jobject> CreateJavaObject( 18 static base::android::ScopedJavaLocalRef<jobject> CreateJavaObject(
19 JNIEnv* env, const MediaMetadata& metadata); 19 JNIEnv* env, const MediaMetadata& metadata);
20 20
21 static bool Register(JNIEnv* env);
22
23 private: 21 private:
24 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaMetadataAndroid); 22 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaMetadataAndroid);
25 }; 23 };
26 24
27 } // namespace content 25 } // namespace content
28 26
29 #endif // CONTENT_COMMON_ANDROID_MEDIA_METADATA_ANDROID_H_ 27 #endif // CONTENT_COMMON_ANDROID_MEDIA_METADATA_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698