| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 const mojo::String& route_id, | 298 const mojo::String& route_id, |
| 299 interfaces::MediaRouter::PresentationConnectionState state) override; | 299 interfaces::MediaRouter::PresentationConnectionState state) override; |
| 300 void OnPresentationConnectionClosed( | 300 void OnPresentationConnectionClosed( |
| 301 const mojo::String& route_id, | 301 const mojo::String& route_id, |
| 302 interfaces::MediaRouter::PresentationConnectionCloseReason reason, | 302 interfaces::MediaRouter::PresentationConnectionCloseReason reason, |
| 303 const mojo::String& message) override; | 303 const mojo::String& message) override; |
| 304 void OnRouteMessagesReceived( | 304 void OnRouteMessagesReceived( |
| 305 const mojo::String& route_id, | 305 const mojo::String& route_id, |
| 306 mojo::Array<interfaces::RouteMessagePtr> messages) override; | 306 mojo::Array<interfaces::RouteMessagePtr> messages) override; |
| 307 | 307 |
| 308 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound |
| 309 // to the ID of the route that was terminated. |
| 310 void OnTerminateRouteResult(const MediaRoute::Id& route_id, |
| 311 mojo::String error_text, |
| 312 interfaces::RouteRequestResultCode result_code); |
| 313 |
| 308 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() | 314 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() |
| 309 // into a local callback. | 315 // into a local callback. |
| 310 void RouteResponseReceived( | 316 void RouteResponseReceived( |
| 311 const std::string& presentation_id, | 317 const std::string& presentation_id, |
| 312 bool off_the_record, | 318 bool off_the_record, |
| 313 const std::vector<MediaRouteResponseCallback>& callbacks, | 319 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 314 interfaces::MediaRoutePtr media_route, | 320 interfaces::MediaRoutePtr media_route, |
| 315 mojo::String error_text, | 321 mojo::String error_text, |
| 316 interfaces::RouteRequestResultCode result_code); | 322 interfaces::RouteRequestResultCode result_code); |
| 317 | 323 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 #endif | 432 #endif |
| 427 | 433 |
| 428 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 434 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 429 | 435 |
| 430 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 436 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 431 }; | 437 }; |
| 432 | 438 |
| 433 } // namespace media_router | 439 } // namespace media_router |
| 434 | 440 |
| 435 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 441 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |