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

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

Issue 2145983003: [Media Router] Adds return value to mojo MediaRouteProvider::TerminateRoute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to apacible@ comments Created 4 years, 5 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 void OnSinkAvailabilityUpdated( 301 void OnSinkAvailabilityUpdated(
302 interfaces::MediaRouter::SinkAvailability availability) override; 302 interfaces::MediaRouter::SinkAvailability availability) override;
303 void OnPresentationConnectionStateChanged( 303 void OnPresentationConnectionStateChanged(
304 const mojo::String& route_id, 304 const mojo::String& route_id,
305 interfaces::MediaRouter::PresentationConnectionState state) override; 305 interfaces::MediaRouter::PresentationConnectionState state) override;
306 void OnPresentationConnectionClosed( 306 void OnPresentationConnectionClosed(
307 const mojo::String& route_id, 307 const mojo::String& route_id,
308 interfaces::MediaRouter::PresentationConnectionCloseReason reason, 308 interfaces::MediaRouter::PresentationConnectionCloseReason reason,
309 const mojo::String& message) override; 309 const mojo::String& message) override;
310 310
311 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound
312 // to the ID of the route that was terminated.
313 void OnTerminateRouteResult(const MediaRoute::Id& route_id,
314 mojo::String error_text,
315 interfaces::RouteRequestResultCode result_code);
316
311 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() 317 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute()
312 // into a local callback. 318 // into a local callback.
313 void RouteResponseReceived( 319 void RouteResponseReceived(
314 const std::string& presentation_id, 320 const std::string& presentation_id,
315 bool off_the_record, 321 bool off_the_record,
316 const std::vector<MediaRouteResponseCallback>& callbacks, 322 const std::vector<MediaRouteResponseCallback>& callbacks,
317 interfaces::MediaRoutePtr media_route, 323 interfaces::MediaRoutePtr media_route,
318 mojo::String error_text, 324 mojo::String error_text,
319 interfaces::RouteRequestResultCode result_code); 325 interfaces::RouteRequestResultCode result_code);
320 326
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 #endif 441 #endif
436 442
437 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 443 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
438 444
439 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 445 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
440 }; 446 };
441 447
442 } // namespace media_router 448 } // namespace media_router
443 449
444 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 450 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698