| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void SendRouteMessage(const MediaRoute::Id& route_id, | 60 void SendRouteMessage(const MediaRoute::Id& route_id, |
| 61 const std::string& message, | 61 const std::string& message, |
| 62 const SendRouteMessageCallback& callback) override; | 62 const SendRouteMessageCallback& callback) override; |
| 63 void SendRouteBinaryMessage( | 63 void SendRouteBinaryMessage( |
| 64 const MediaRoute::Id& route_id, | 64 const MediaRoute::Id& route_id, |
| 65 std::unique_ptr<std::vector<uint8_t>> data, | 65 std::unique_ptr<std::vector<uint8_t>> data, |
| 66 const SendRouteMessageCallback& callback) override; | 66 const SendRouteMessageCallback& callback) override; |
| 67 void AddIssue(const Issue& issue) override; | 67 void AddIssue(const Issue& issue) override; |
| 68 void ClearIssue(const Issue::Id& issue_id) override; | 68 void ClearIssue(const Issue::Id& issue_id) override; |
| 69 void OnUserGesture() override; | 69 void OnUserGesture() override; |
| 70 void SearchSinksAndCreateRoute( |
| 71 const MediaSource::Id& source_id, |
| 72 const MediaSink::Id& sink_id, |
| 73 const std::string& search_input, |
| 74 const std::string& domain, |
| 75 const GURL& origin, |
| 76 content::WebContents* web_contents, |
| 77 const std::vector<MediaRouteResponseCallback>& route_callbacks, |
| 78 const MediaSinkSearchResponseCallback& sink_callback, |
| 79 base::TimeDelta timeout, |
| 80 bool off_the_record) override; |
| 70 | 81 |
| 71 // The methods called by the Java counterpart. | 82 // The methods called by the Java counterpart. |
| 72 | 83 |
| 73 // Notifies the media router that information about sinks is received for | 84 // Notifies the media router that information about sinks is received for |
| 74 // a specific source URN. | 85 // a specific source URN. |
| 75 void OnSinksReceived(JNIEnv* env, | 86 void OnSinksReceived(JNIEnv* env, |
| 76 const base::android::JavaParamRef<jobject>& obj, | 87 const base::android::JavaParamRef<jobject>& obj, |
| 77 const base::android::JavaParamRef<jstring>& jsource_urn, | 88 const base::android::JavaParamRef<jstring>& jsource_urn, |
| 78 jint jcount); | 89 jint jcount); |
| 79 | 90 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 MediaRoute::Id, | 181 MediaRoute::Id, |
| 171 std::unique_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>; | 182 std::unique_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>; |
| 172 MessagesObservers messages_observers_; | 183 MessagesObservers messages_observers_; |
| 173 | 184 |
| 174 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); | 185 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); |
| 175 }; | 186 }; |
| 176 | 187 |
| 177 } // namespace media_router | 188 } // namespace media_router |
| 178 | 189 |
| 179 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ | 190 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ |
| OLD | NEW |