| 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_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 mojom::MediaRouter::SinkAvailability availability) override; | 319 mojom::MediaRouter::SinkAvailability availability) override; |
| 320 void OnPresentationConnectionStateChanged( | 320 void OnPresentationConnectionStateChanged( |
| 321 const std::string& route_id, | 321 const std::string& route_id, |
| 322 content::PresentationConnectionState state) override; | 322 content::PresentationConnectionState state) override; |
| 323 void OnPresentationConnectionClosed( | 323 void OnPresentationConnectionClosed( |
| 324 const std::string& route_id, | 324 const std::string& route_id, |
| 325 content::PresentationConnectionCloseReason reason, | 325 content::PresentationConnectionCloseReason reason, |
| 326 const std::string& message) override; | 326 const std::string& message) override; |
| 327 void OnRouteMessagesReceived( | 327 void OnRouteMessagesReceived( |
| 328 const std::string& route_id, | 328 const std::string& route_id, |
| 329 const std::vector<RouteMessage>& messages) override; | 329 const std::vector<content::PresentationConnectionMessage>& messages) |
| 330 override; |
| 330 | 331 |
| 331 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound | 332 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound |
| 332 // to the ID of the route that was terminated. | 333 // to the ID of the route that was terminated. |
| 333 void OnTerminateRouteResult(const MediaRoute::Id& route_id, | 334 void OnTerminateRouteResult(const MediaRoute::Id& route_id, |
| 334 const base::Optional<std::string>& error_text, | 335 const base::Optional<std::string>& error_text, |
| 335 RouteRequestResult::ResultCode result_code); | 336 RouteRequestResult::ResultCode result_code); |
| 336 | 337 |
| 337 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() | 338 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() |
| 338 // into a local callback. | 339 // into a local callback. |
| 339 void RouteResponseReceived(const std::string& presentation_id, | 340 void RouteResponseReceived(const std::string& presentation_id, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 #endif | 433 #endif |
| 433 | 434 |
| 434 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 435 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 435 | 436 |
| 436 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 437 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 437 }; | 438 }; |
| 438 | 439 |
| 439 } // namespace media_router | 440 } // namespace media_router |
| 440 | 441 |
| 441 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 442 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |