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

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

Issue 2947403004: [MediaRouter] Replace RouteMessage with PresentationConnectionMessage (Closed)
Patch Set: Addressed Takumi's comments Created 3 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 mojom::MediaRouter::SinkAvailability availability) override; 334 mojom::MediaRouter::SinkAvailability availability) override;
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<content::PresentationConnectionMessage>& messages)
345 override;
345 346
346 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound 347 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound
347 // to the ID of the route that was terminated. 348 // to the ID of the route that was terminated.
348 void OnTerminateRouteResult(const MediaRoute::Id& route_id, 349 void OnTerminateRouteResult(const MediaRoute::Id& route_id,
349 const base::Optional<std::string>& error_text, 350 const base::Optional<std::string>& error_text,
350 RouteRequestResult::ResultCode result_code); 351 RouteRequestResult::ResultCode result_code);
351 352
352 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() 353 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute()
353 // into a local callback. 354 // into a local callback.
354 void RouteResponseReceived(const std::string& presentation_id, 355 void RouteResponseReceived(const std::string& presentation_id,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 #endif 487 #endif
487 488
488 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 489 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
489 490
490 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 491 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
491 }; 492 };
492 493
493 } // namespace media_router 494 } // namespace media_router
494 495
495 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 496 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698