| OLD | NEW |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void TerminateRoute(const MediaRoute::Id& route_id) override; | 57 void TerminateRoute(const MediaRoute::Id& route_id) override; |
| 58 void SendRouteMessage(const MediaRoute::Id& route_id, | 58 void SendRouteMessage(const MediaRoute::Id& route_id, |
| 59 const std::string& message, | 59 const std::string& message, |
| 60 const SendRouteMessageCallback& callback) override; | 60 const SendRouteMessageCallback& callback) override; |
| 61 void SendRouteBinaryMessage( | 61 void SendRouteBinaryMessage( |
| 62 const MediaRoute::Id& route_id, | 62 const MediaRoute::Id& route_id, |
| 63 scoped_ptr<std::vector<uint8_t>> data, | 63 scoped_ptr<std::vector<uint8_t>> data, |
| 64 const SendRouteMessageCallback& callback) override; | 64 const SendRouteMessageCallback& callback) override; |
| 65 void AddIssue(const Issue& issue) override; | 65 void AddIssue(const Issue& issue) override; |
| 66 void ClearIssue(const Issue::Id& issue_id) override; | 66 void ClearIssue(const Issue::Id& issue_id) override; |
| 67 void OnUserGesture() override; |
| 67 | 68 |
| 68 // The methods called by the Java counterpart. | 69 // The methods called by the Java counterpart. |
| 69 | 70 |
| 70 // Notifies the media router that information about sinks is received for | 71 // Notifies the media router that information about sinks is received for |
| 71 // a specific source URN. | 72 // a specific source URN. |
| 72 void OnSinksReceived(JNIEnv* env, | 73 void OnSinksReceived(JNIEnv* env, |
| 73 const base::android::JavaParamRef<jobject>& obj, | 74 const base::android::JavaParamRef<jobject>& obj, |
| 74 const base::android::JavaParamRef<jstring>& jsource_urn, | 75 const base::android::JavaParamRef<jstring>& jsource_urn, |
| 75 jint jcount); | 76 jint jcount); |
| 76 | 77 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 MediaRoute::Id, | 161 MediaRoute::Id, |
| 161 scoped_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>; | 162 scoped_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>; |
| 162 MessagesObservers messages_observers_; | 163 MessagesObservers messages_observers_; |
| 163 | 164 |
| 164 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); | 165 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace media_router | 168 } // namespace media_router |
| 168 | 169 |
| 169 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ | 170 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ |
| OLD | NEW |