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

Side by Side Diff: chrome/browser/media/android/remote/remote_media_player_bridge.h

Issue 1829923003: [Android,RemotePlayback] Resolve HTMLMediaElement.remote.connect() with false when device is not se… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-playback-connect
Patch Set: Rebased Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void OnCastStarting( 75 void OnCastStarting(
76 JNIEnv* env, 76 JNIEnv* env,
77 const base::android::JavaParamRef<jobject>& obj, 77 const base::android::JavaParamRef<jobject>& obj,
78 const base::android::JavaParamRef<jstring>& casting_message); 78 const base::android::JavaParamRef<jstring>& casting_message);
79 void OnCastStopping(JNIEnv* env, 79 void OnCastStopping(JNIEnv* env,
80 const base::android::JavaParamRef<jobject>& obj); 80 const base::android::JavaParamRef<jobject>& obj);
81 void OnSeekCompleted(JNIEnv* env, 81 void OnSeekCompleted(JNIEnv* env,
82 const base::android::JavaParamRef<jobject>& obj); 82 const base::android::JavaParamRef<jobject>& obj);
83 void OnError(JNIEnv *env, 83 void OnError(JNIEnv *env,
84 const base::android::JavaParamRef<jobject>& obj); 84 const base::android::JavaParamRef<jobject>& obj);
85 void OnCancelledRemotePlaybackRequest(
86 JNIEnv *env,
87 const base::android::JavaParamRef<jobject>& obj);
85 88
86 // Wrappers for calls to Java used by the remote media player manager 89 // Wrappers for calls to Java used by the remote media player manager
87 void RequestRemotePlayback(); 90 void RequestRemotePlayback();
88 void RequestRemotePlaybackControl(); 91 void RequestRemotePlaybackControl();
89 void SetNativePlayer(); 92 void SetNativePlayer();
90 void OnPlayerCreated(); 93 void OnPlayerCreated();
91 void OnPlayerDestroyed(); 94 void OnPlayerDestroyed();
92 95
93 // Gets the message to display on the embedded player while casting. 96 // Gets the message to display on the embedded player while casting.
94 std::string GetCastingMessage(); 97 std::string GetCastingMessage();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 147
145 // NOTE: Weak pointers must be invalidated before all other member variables. 148 // NOTE: Weak pointers must be invalidated before all other member variables.
146 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_; 149 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_;
147 150
148 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge); 151 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge);
149 }; 152 };
150 153
151 } // namespace remote_media 154 } // namespace remote_media
152 155
153 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 156 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698