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

Unified Diff: content/browser/android/web_contents_observer_proxy.cc

Issue 2453623003: Decouple MediaSession messages from WebContents (full patch) (Closed)
Patch Set: nit Created 4 years, 1 month 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/android/web_contents_observer_proxy.cc
diff --git a/content/browser/android/web_contents_observer_proxy.cc b/content/browser/android/web_contents_observer_proxy.cc
index e42d6bd0b5c44cb483da5c5711afdae038a83421..34e72a96838ec8dff78830568185efea3ae87b22 100644
--- a/content/browser/android/web_contents_observer_proxy.cc
+++ b/content/browser/android/web_contents_observer_proxy.cc
@@ -318,30 +318,6 @@ void WebContentsObserverProxy::DidStartNavigationToPendingEntry(
jstring_url);
}
-void WebContentsObserverProxy::MediaSessionStateChanged(bool is_controllable,
- bool is_suspended) {
- JNIEnv* env = AttachCurrentThread();
-
- ScopedJavaLocalRef<jobject> obj(java_observer_);
-
- Java_WebContentsObserverProxy_mediaSessionStateChanged(
- env, obj, is_controllable, is_suspended);
-}
-
-void WebContentsObserverProxy::MediaSessionMetadataChanged(
- const base::Optional<MediaMetadata>& metadata) {
- JNIEnv* env = AttachCurrentThread();
-
- ScopedJavaLocalRef<jobject> obj(java_observer_);
- ScopedJavaLocalRef<jobject> j_metadata;
-
- if (metadata.has_value())
- j_metadata = MediaMetadataAndroid::CreateJavaObject(env, metadata.value());
-
- Java_WebContentsObserverProxy_mediaSessionMetadataChanged(env, obj,
- j_metadata);
-}
-
void WebContentsObserverProxy::SetToBaseURLForDataURLIfNeeded(
std::string* url) {
NavigationEntry* entry =
« no previous file with comments | « content/browser/android/web_contents_observer_proxy.h ('k') | content/browser/media/session/audio_focus_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698