| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 const MediaRoute* FindRouteBySource(const MediaSource::Id& source_id) const; | 33 const MediaRoute* FindRouteBySource(const MediaSource::Id& source_id) const; |
| 34 | 34 |
| 35 // MediaRouter implementation. | 35 // MediaRouter implementation. |
| 36 void CreateRoute(const MediaSource::Id& source_id, | 36 void CreateRoute(const MediaSource::Id& source_id, |
| 37 const MediaSink::Id& sink_id, | 37 const MediaSink::Id& sink_id, |
| 38 const GURL& origin, | 38 const GURL& origin, |
| 39 content::WebContents* web_contents, | 39 content::WebContents* web_contents, |
| 40 const std::vector<MediaRouteResponseCallback>& callbacks, | 40 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 41 base::TimeDelta timeout, | 41 base::TimeDelta timeout, |
| 42 bool off_the_record) override; | 42 bool incognito) override; |
| 43 void JoinRoute(const MediaSource::Id& source, | 43 void JoinRoute(const MediaSource::Id& source, |
| 44 const std::string& presentation_id, | 44 const std::string& presentation_id, |
| 45 const GURL& origin, | 45 const GURL& origin, |
| 46 content::WebContents* web_contents, | 46 content::WebContents* web_contents, |
| 47 const std::vector<MediaRouteResponseCallback>& callbacks, | 47 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 48 base::TimeDelta timeout, | 48 base::TimeDelta timeout, |
| 49 bool off_the_record) override; | 49 bool incognito) override; |
| 50 void ConnectRouteByRouteId( | 50 void ConnectRouteByRouteId( |
| 51 const MediaSource::Id& source, | 51 const MediaSource::Id& source, |
| 52 const MediaRoute::Id& route_id, | 52 const MediaRoute::Id& route_id, |
| 53 const GURL& origin, | 53 const GURL& origin, |
| 54 content::WebContents* web_contents, | 54 content::WebContents* web_contents, |
| 55 const std::vector<MediaRouteResponseCallback>& callbacks, | 55 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 56 base::TimeDelta timeout, | 56 base::TimeDelta timeout, |
| 57 bool off_the_record) override; | 57 bool incognito) override; |
| 58 void DetachRoute(const MediaRoute::Id& route_id) override; | 58 void DetachRoute(const MediaRoute::Id& route_id) override; |
| 59 void TerminateRoute(const MediaRoute::Id& route_id) override; | 59 void TerminateRoute(const MediaRoute::Id& route_id) override; |
| 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; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 MediaRoute::Id, | 176 MediaRoute::Id, |
| 177 std::unique_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>; | 177 std::unique_ptr<base::ObserverList<PresentationSessionMessagesObserver>>>; |
| 178 MessagesObservers messages_observers_; | 178 MessagesObservers messages_observers_; |
| 179 | 179 |
| 180 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); | 180 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 } // namespace media_router | 183 } // namespace media_router |
| 184 | 184 |
| 185 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ | 185 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ |
| OLD | NEW |