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

Side by Side Diff: chrome/browser/media/android/router/media_router_android.h

Issue 1883423002: [Android,MediaRouter,Cast] implement onterminate and onclose. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable more disabled tests 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ROUTER_MEDIA_ROUTER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
6 #define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ 6 #define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const base::android::JavaParamRef<jobject>& obj, 92 const base::android::JavaParamRef<jobject>& obj,
93 const base::android::JavaParamRef<jstring>& jerror_text, 93 const base::android::JavaParamRef<jstring>& jerror_text,
94 jint jroute_request_id); 94 jint jroute_request_id);
95 95
96 // Notifies the media router when the route was closed. 96 // Notifies the media router when the route was closed.
97 void OnRouteClosed( 97 void OnRouteClosed(
98 JNIEnv* env, 98 JNIEnv* env,
99 const base::android::JavaParamRef<jobject>& obj, 99 const base::android::JavaParamRef<jobject>& obj,
100 const base::android::JavaParamRef<jstring>& jmedia_route_id); 100 const base::android::JavaParamRef<jstring>& jmedia_route_id);
101 101
102 // Notifies the media router when the route was closed with an error.
103 void OnRouteClosedWithError(
104 JNIEnv* env,
105 const base::android::JavaParamRef<jobject>& obj,
106 const base::android::JavaParamRef<jstring>& jmedia_route_id,
107 const base::android::JavaParamRef<jstring>& jmessage);
108
102 // Notifies the media router about the result of sending a message. 109 // Notifies the media router about the result of sending a message.
103 void OnMessageSentResult(JNIEnv* env, 110 void OnMessageSentResult(JNIEnv* env,
104 const base::android::JavaParamRef<jobject>& obj, 111 const base::android::JavaParamRef<jobject>& obj,
105 jboolean jsuccess, 112 jboolean jsuccess,
106 jint jcallback_id); 113 jint jcallback_id);
107 114
108 // Notifies the media router about a message received from the media route. 115 // Notifies the media router about a message received from the media route.
109 void OnMessage(JNIEnv* env, 116 void OnMessage(JNIEnv* env,
110 const base::android::JavaParamRef<jobject>& obj, 117 const base::android::JavaParamRef<jobject>& obj,
111 const base::android::JavaParamRef<jstring>& jmedia_route_id, 118 const base::android::JavaParamRef<jstring>& jmedia_route_id,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 MediaRoute::Id, 170 MediaRoute::Id,
164 std::unique_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>; 171 std::unique_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>;
165 MessagesObservers messages_observers_; 172 MessagesObservers messages_observers_;
166 173
167 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); 174 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid);
168 }; 175 };
169 176
170 } // namespace media_router 177 } // namespace media_router
171 178
172 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ 179 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698