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

Unified Diff: content/browser/web_contents/web_contents_android.h

Issue 2439483003: Link MediaSessionTabHelper with native MediaSession [CL is going to be split] (Closed)
Patch Set: addressed comments Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_android.h
diff --git a/content/browser/web_contents/web_contents_android.h b/content/browser/web_contents/web_contents_android.h
index 91db51d8d5c006b0fdbdfef928c3d787ef147b93..c73eec64b8c960007ee19973fa32abbccfa4beff 100644
--- a/content/browser/web_contents/web_contents_android.h
+++ b/content/browser/web_contents/web_contents_android.h
@@ -158,12 +158,13 @@ class CONTENT_EXPORT WebContentsAndroid
const base::android::JavaParamRef<jobject>& obj,
const base::android::JavaParamRef<jobject>& callback);
- void ResumeMediaSession(JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj);
- void SuspendMediaSession(JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj);
- void StopMediaSession(JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj);
+ // Create a MediaSessionDelegateAndroid object as the native counterpart of
+ // |j_delegate| and link then together, and add it to the MediaSession of this
+ // WebContents object.
+ void AddMediaSessionDelegate(
+ JNIEnv* envm,
+ const base::android::JavaParamRef<jobject>& obj,
+ const base::android::JavaParamRef<jobject>& j_delegate);
base::android::ScopedJavaLocalRef<jstring> GetEncoding(
JNIEnv* env,

Powered by Google App Engine
This is Rietveld 408576698