Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: chrome/browser/media/router/mojo/media_router_mojo_impl.h

Issue 2196433002: [Media Router] Adds return value to mojo MediaRouteProvider::TerminateRoute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/mojo/media_router.mojom ('k') | chrome/browser/media/router/mojo/media_router_mojo_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698