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_ROUTER_MEDIA_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 const MediaSource::Id& source_id, | 171 const MediaSource::Id& source_id, |
| 172 const std::string& search_input, | 172 const std::string& search_input, |
| 173 const std::string& domain, | 173 const std::string& domain, |
| 174 const MediaSinkSearchResponseCallback& sink_callback) = 0; | 174 const MediaSinkSearchResponseCallback& sink_callback) = 0; |
| 175 | 175 |
| 176 // Notifies the Media Router that the list of MediaSinks discovered by a | 176 // Notifies the Media Router that the list of MediaSinks discovered by a |
| 177 // MediaSinkService has been updated. | 177 // MediaSinkService has been updated. |
| 178 // |provider_name|: Name of the MediaSinkService providing the sinks. | 178 // |provider_name|: Name of the MediaSinkService providing the sinks. |
| 179 // |sinks|: sinks discovered by MediaSinkService. | 179 // |sinks|: sinks discovered by MediaSinkService. |
| 180 virtual void ProvideSinks(const std::string& provider_name, | 180 virtual void ProvideSinks(const std::string& provider_name, |
| 181 const std::vector<MediaSinkInternal>& sinks) = 0; | 181 std::vector<MediaSinkInternal> sinks) = 0; |
|
imcheng
2017/05/26 01:26:00
similar to the other comment about using std::move
zhaobin
2017/05/26 20:59:40
To avoid copy as Mark suggested...
| |
| 182 | 182 |
| 183 // Adds |callback| to listen for state changes for presentation connected to | 183 // Adds |callback| to listen for state changes for presentation connected to |
| 184 // |route_id|. The returned Subscription object is owned by the caller. | 184 // |route_id|. The returned Subscription object is owned by the caller. |
| 185 // |callback| will be invoked whenever there are state changes, until the | 185 // |callback| will be invoked whenever there are state changes, until the |
| 186 // caller destroys the Subscription object. | 186 // caller destroys the Subscription object. |
| 187 virtual std::unique_ptr<PresentationConnectionStateSubscription> | 187 virtual std::unique_ptr<PresentationConnectionStateSubscription> |
| 188 AddPresentationConnectionStateChangedCallback( | 188 AddPresentationConnectionStateChangedCallback( |
| 189 const MediaRoute::Id& route_id, | 189 const MediaRoute::Id& route_id, |
| 190 const content::PresentationConnectionStateChangedCallback& callback) = 0; | 190 const content::PresentationConnectionStateChangedCallback& callback) = 0; |
| 191 | 191 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 265 // Removes the MediaRouteController for |route_id| from the list of | 265 // Removes the MediaRouteController for |route_id| from the list of |
| 266 // controllers held by |this|. Called by MediaRouteController when it is | 266 // controllers held by |this|. Called by MediaRouteController when it is |
| 267 // invalidated. | 267 // invalidated. |
| 268 virtual void DetachRouteController(const MediaRoute::Id& route_id, | 268 virtual void DetachRouteController(const MediaRoute::Id& route_id, |
| 269 MediaRouteController* controller) = 0; | 269 MediaRouteController* controller) = 0; |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 } // namespace media_router | 272 } // namespace media_router |
| 273 | 273 |
| 274 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ | 274 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ |
| OLD | NEW |