| 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 #include "chrome/browser/media/android/router/media_router_android.h" | 5 #include "chrome/browser/media/android/router/media_router_android.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/guid.h" | 10 #include "base/guid.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 void MediaRouterAndroid::SearchSinks( | 142 void MediaRouterAndroid::SearchSinks( |
| 143 const MediaSink::Id& sink_id, | 143 const MediaSink::Id& sink_id, |
| 144 const MediaSource::Id& source_id, | 144 const MediaSource::Id& source_id, |
| 145 const std::string& search_input, | 145 const std::string& search_input, |
| 146 const std::string& domain, | 146 const std::string& domain, |
| 147 const MediaSinkSearchResponseCallback& sink_callback) { | 147 const MediaSinkSearchResponseCallback& sink_callback) { |
| 148 NOTIMPLEMENTED(); | 148 NOTIMPLEMENTED(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 void MediaRouterAndroid::ProvideSinks( | 151 void MediaRouterAndroid::ProvideSinks(const std::string& provider_name, |
| 152 const std::string& provider_name, | 152 std::vector<MediaSinkInternal> sinks) { |
| 153 const std::vector<MediaSinkInternal>& sinks) { | |
| 154 NOTIMPLEMENTED(); | 153 NOTIMPLEMENTED(); |
| 155 } | 154 } |
| 156 | 155 |
| 157 void MediaRouterAndroid::DetachRoute(const MediaRoute::Id& route_id) { | 156 void MediaRouterAndroid::DetachRoute(const MediaRoute::Id& route_id) { |
| 158 bridge_->DetachRoute(route_id); | 157 bridge_->DetachRoute(route_id); |
| 159 RemoveRoute(route_id); | 158 RemoveRoute(route_id); |
| 160 NotifyPresentationConnectionClose( | 159 NotifyPresentationConnectionClose( |
| 161 route_id, content::PRESENTATION_CONNECTION_CLOSE_REASON_CLOSED, | 160 route_id, content::PRESENTATION_CONNECTION_CLOSE_REASON_CLOSED, |
| 162 "Remove route"); | 161 "Remove route"); |
| 163 } | 162 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 if (it->media_route_id() == route_id) { | 330 if (it->media_route_id() == route_id) { |
| 332 active_routes_.erase(it); | 331 active_routes_.erase(it); |
| 333 break; | 332 break; |
| 334 } | 333 } |
| 335 | 334 |
| 336 for (auto& observer : routes_observers_) | 335 for (auto& observer : routes_observers_) |
| 337 observer.OnRoutesUpdated(active_routes_, std::vector<MediaRoute::Id>()); | 336 observer.OnRoutesUpdated(active_routes_, std::vector<MediaRoute::Id>()); |
| 338 } | 337 } |
| 339 | 338 |
| 340 } // namespace media_router | 339 } // namespace media_router |
| OLD | NEW |