| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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<RouteMessage>& messages) override; |
| 345 void OnMediaRemoterCreated( |
| 346 int32_t tab_id, |
| 347 media::mojom::MirrorServiceRemoterPtr remoter, |
| 348 media::mojom::MirrorServiceRemotingSourceRequest source_request) override; |
| 345 | 349 |
| 346 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound | 350 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound |
| 347 // to the ID of the route that was terminated. | 351 // to the ID of the route that was terminated. |
| 348 void OnTerminateRouteResult(const MediaRoute::Id& route_id, | 352 void OnTerminateRouteResult(const MediaRoute::Id& route_id, |
| 349 const base::Optional<std::string>& error_text, | 353 const base::Optional<std::string>& error_text, |
| 350 RouteRequestResult::ResultCode result_code); | 354 RouteRequestResult::ResultCode result_code); |
| 351 | 355 |
| 352 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() | 356 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() |
| 353 // into a local callback. | 357 // into a local callback. |
| 354 void RouteResponseReceived(const std::string& presentation_id, | 358 void RouteResponseReceived(const std::string& presentation_id, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 #endif | 490 #endif |
| 487 | 491 |
| 488 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 492 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 489 | 493 |
| 490 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 494 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 491 }; | 495 }; |
| 492 | 496 |
| 493 } // namespace media_router | 497 } // namespace media_router |
| 494 | 498 |
| 495 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 499 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |