Chromium Code Reviews| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 void SendRouteMessage(const MediaRoute::Id& route_id, | 59 void SendRouteMessage(const MediaRoute::Id& route_id, |
| 60 const std::string& message, | 60 const std::string& message, |
| 61 const SendRouteMessageCallback& callback) override; | 61 const SendRouteMessageCallback& callback) override; |
| 62 void SendRouteBinaryMessage( | 62 void SendRouteBinaryMessage( |
| 63 const MediaRoute::Id& route_id, | 63 const MediaRoute::Id& route_id, |
| 64 scoped_ptr<std::vector<uint8_t>> data, | 64 scoped_ptr<std::vector<uint8_t>> data, |
| 65 const SendRouteMessageCallback& callback) override; | 65 const SendRouteMessageCallback& callback) override; |
| 66 void AddIssue(const Issue& issue) override; | 66 void AddIssue(const Issue& issue) override; |
| 67 void ClearIssue(const Issue::Id& issue_id) override; | 67 void ClearIssue(const Issue::Id& issue_id) override; |
| 68 void OnUserGesture() override; | 68 void OnUserGesture() override; |
| 69 void SearchSinksAndCreateRoute( | |
| 70 const MediaSource::Id& source_id, | |
|
imcheng
2016/04/18 23:15:46
We would try to reduce the number of input paramet
btolsch
2016/04/19 01:39:42
Acknowledged.
| |
| 71 const MediaSink::Id& sink_id, | |
| 72 const std::string& search_input, | |
| 73 const std::string& domain, | |
| 74 const GURL& origin, | |
| 75 content::WebContents* web_contents, | |
| 76 const std::vector<MediaRouteResponseCallback>& route_callbacks, | |
| 77 const MediaSinkSearchResponseCallback& sink_callback, | |
| 78 base::TimeDelta timeout, | |
| 79 bool off_the_record) override; | |
| 69 | 80 |
| 70 // The methods called by the Java counterpart. | 81 // The methods called by the Java counterpart. |
| 71 | 82 |
| 72 // Notifies the media router that information about sinks is received for | 83 // Notifies the media router that information about sinks is received for |
| 73 // a specific source URN. | 84 // a specific source URN. |
| 74 void OnSinksReceived(JNIEnv* env, | 85 void OnSinksReceived(JNIEnv* env, |
| 75 const base::android::JavaParamRef<jobject>& obj, | 86 const base::android::JavaParamRef<jobject>& obj, |
| 76 const base::android::JavaParamRef<jstring>& jsource_urn, | 87 const base::android::JavaParamRef<jstring>& jsource_urn, |
| 77 jint jcount); | 88 jint jcount); |
| 78 | 89 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 162 MediaRoute::Id, | 173 MediaRoute::Id, |
| 163 scoped_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>; | 174 scoped_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>; |
| 164 MessagesObservers messages_observers_; | 175 MessagesObservers messages_observers_; |
| 165 | 176 |
| 166 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); | 177 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); |
| 167 }; | 178 }; |
| 168 | 179 |
| 169 } // namespace media_router | 180 } // namespace media_router |
| 170 | 181 |
| 171 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ | 182 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ |
| OLD | NEW |