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