| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 mojom::MediaRouter::SinkAvailability availability) override; | 334 mojom::MediaRouter::SinkAvailability availability) override; |
| 335 void OnPresentationConnectionStateChanged( | 335 void OnPresentationConnectionStateChanged( |
| 336 const std::string& route_id, | 336 const std::string& route_id, |
| 337 content::PresentationConnectionState state) override; | 337 content::PresentationConnectionState state) override; |
| 338 void OnPresentationConnectionClosed( | 338 void OnPresentationConnectionClosed( |
| 339 const std::string& route_id, | 339 const std::string& route_id, |
| 340 content::PresentationConnectionCloseReason reason, | 340 content::PresentationConnectionCloseReason reason, |
| 341 const std::string& message) override; | 341 const std::string& message) override; |
| 342 void OnRouteMessagesReceived( | 342 void OnRouteMessagesReceived( |
| 343 const std::string& route_id, | 343 const std::string& route_id, |
| 344 const std::vector<RouteMessage>& messages) override; | 344 const std::vector<content::PresentationConnectionMessage>& messages) |
| 345 override; |
| 345 | 346 |
| 346 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound | 347 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound |
| 347 // to the ID of the route that was terminated. | 348 // to the ID of the route that was terminated. |
| 348 void OnTerminateRouteResult(const MediaRoute::Id& route_id, | 349 void OnTerminateRouteResult(const MediaRoute::Id& route_id, |
| 349 const base::Optional<std::string>& error_text, | 350 const base::Optional<std::string>& error_text, |
| 350 RouteRequestResult::ResultCode result_code); | 351 RouteRequestResult::ResultCode result_code); |
| 351 | 352 |
| 352 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() | 353 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() |
| 353 // into a local callback. | 354 // into a local callback. |
| 354 void RouteResponseReceived(const std::string& presentation_id, | 355 void RouteResponseReceived(const std::string& presentation_id, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 #endif | 487 #endif |
| 487 | 488 |
| 488 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 489 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 489 | 490 |
| 490 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 491 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 491 }; | 492 }; |
| 492 | 493 |
| 493 } // namespace media_router | 494 } // namespace media_router |
| 494 | 495 |
| 495 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 496 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |