| 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 bool incognito) 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 IssueInfo& issue_info) 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 SearchSinks( | 70 void SearchSinks( |
| 71 const MediaSink::Id& sink_id, | 71 const MediaSink::Id& sink_id, |
| 72 const MediaSource::Id& source_id, | 72 const MediaSource::Id& source_id, |
| 73 const std::string& search_input, | 73 const std::string& search_input, |
| 74 const std::string& domain, | 74 const std::string& domain, |
| 75 const MediaSinkSearchResponseCallback& sink_callback) override; | 75 const MediaSinkSearchResponseCallback& sink_callback) override; |
| 76 | 76 |
| 77 // The methods called by the Java counterpart. | 77 // The methods called by the Java counterpart. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 using MessageObservers = base::ScopedPtrHashMap< | 172 using MessageObservers = base::ScopedPtrHashMap< |
| 173 MediaRoute::Id, std::unique_ptr<base::ObserverList<RouteMessageObserver>>>; | 173 MediaRoute::Id, std::unique_ptr<base::ObserverList<RouteMessageObserver>>>; |
| 174 MessageObservers message_observers_; | 174 MessageObservers message_observers_; |
| 175 | 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); | 176 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace media_router | 179 } // namespace media_router |
| 180 | 180 |
| 181 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ | 181 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ |
| OLD | NEW |