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

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

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: Rebase, addressed comments 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 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const base::android::JavaParamRef<jobject>& obj); 81 const base::android::JavaParamRef<jobject>& obj);
82 void OnError(JNIEnv *env, 82 void OnError(JNIEnv *env,
83 const base::android::JavaParamRef<jobject>& obj); 83 const base::android::JavaParamRef<jobject>& obj);
84 void OnCancelledRemotePlaybackRequest( 84 void OnCancelledRemotePlaybackRequest(
85 JNIEnv *env, 85 JNIEnv *env,
86 const base::android::JavaParamRef<jobject>& obj); 86 const base::android::JavaParamRef<jobject>& obj);
87 87
88 // Wrappers for calls to Java used by the remote media player manager 88 // Wrappers for calls to Java used by the remote media player manager
89 void RequestRemotePlayback(); 89 void RequestRemotePlayback();
90 void RequestRemotePlaybackControl(); 90 void RequestRemotePlaybackControl();
91 void RequestRemotePlaybackStop();
91 void SetNativePlayer(); 92 void SetNativePlayer();
92 void OnPlayerCreated(); 93 void OnPlayerCreated();
93 void OnPlayerDestroyed(); 94 void OnPlayerDestroyed();
94 95
95 // Gets the message to display on the embedded player while casting. 96 // Gets the message to display on the embedded player while casting.
96 std::string GetCastingMessage(); 97 std::string GetCastingMessage();
97 98
98 // Tell the java side about the poster image for a given media. 99 // Tell the java side about the poster image for a given media.
99 void SetPosterBitmap(const std::vector<SkBitmap>& bitmaps); 100 void SetPosterBitmap(const std::vector<SkBitmap>& bitmaps);
100 101
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 144
144 // NOTE: Weak pointers must be invalidated before all other member variables. 145 // NOTE: Weak pointers must be invalidated before all other member variables.
145 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_; 146 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge); 148 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge);
148 }; 149 };
149 150
150 } // namespace remote_media 151 } // namespace remote_media
151 152
152 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 153 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698