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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void AddIssue(const IssueInfo& issue_info) override; | 64 void AddIssue(const IssueInfo& issue_info) override; |
65 void ClearIssue(const Issue::Id& issue_id) override; | 65 void ClearIssue(const Issue::Id& issue_id) override; |
66 void OnUserGesture() override; | 66 void OnUserGesture() override; |
67 void SearchSinks( | 67 void SearchSinks( |
68 const MediaSink::Id& sink_id, | 68 const MediaSink::Id& sink_id, |
69 const MediaSource::Id& source_id, | 69 const MediaSource::Id& source_id, |
70 const std::string& search_input, | 70 const std::string& search_input, |
71 const std::string& domain, | 71 const std::string& domain, |
72 const MediaSinkSearchResponseCallback& sink_callback) override; | 72 const MediaSinkSearchResponseCallback& sink_callback) override; |
73 void ProvideSinks(const std::string& provider_name, | 73 void ProvideSinks(const std::string& provider_name, |
74 const std::vector<MediaSinkInternal>& sinks) override; | 74 std::vector<MediaSinkInternal> sinks) override; |
75 | 75 |
76 // The methods called by the Java bridge. | 76 // The methods called by the Java bridge. |
77 // Notifies the media router that information about sinks is received for | 77 // Notifies the media router that information about sinks is received for |
78 // a specific source id. | 78 // a specific source id. |
79 void OnSinksReceived(const MediaSource::Id& source_id, | 79 void OnSinksReceived(const MediaSource::Id& source_id, |
80 const std::vector<MediaSink>& sinks); | 80 const std::vector<MediaSink>& sinks); |
81 | 81 |
82 // Notifies the media router about a successful route creation. | 82 // Notifies the media router about a successful route creation. |
83 void OnRouteCreated(const MediaRoute::Id& route_id, | 83 void OnRouteCreated(const MediaRoute::Id& route_id, |
84 const MediaSink::Id& sink_id, | 84 const MediaSink::Id& sink_id, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 MediaRoute::Id, | 159 MediaRoute::Id, |
160 std::unique_ptr<base::ObserverList<RouteMessageObserver>>>; | 160 std::unique_ptr<base::ObserverList<RouteMessageObserver>>>; |
161 MessageObservers message_observers_; | 161 MessageObservers message_observers_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); | 163 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace media_router | 166 } // namespace media_router |
167 | 167 |
168 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ | 168 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ |
OLD | NEW |