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

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

Issue 2947403004: [MediaRouter] Replace RouteMessage with PresentationConnectionMessage (Closed)
Patch Set: rebase 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 mojom::MediaRouter::SinkAvailability availability) override; 319 mojom::MediaRouter::SinkAvailability availability) override;
320 void OnPresentationConnectionStateChanged( 320 void OnPresentationConnectionStateChanged(
321 const std::string& route_id, 321 const std::string& route_id,
322 content::PresentationConnectionState state) override; 322 content::PresentationConnectionState state) override;
323 void OnPresentationConnectionClosed( 323 void OnPresentationConnectionClosed(
324 const std::string& route_id, 324 const std::string& route_id,
325 content::PresentationConnectionCloseReason reason, 325 content::PresentationConnectionCloseReason reason,
326 const std::string& message) override; 326 const std::string& message) override;
327 void OnRouteMessagesReceived( 327 void OnRouteMessagesReceived(
328 const std::string& route_id, 328 const std::string& route_id,
329 const std::vector<RouteMessage>& messages) override; 329 const std::vector<content::PresentationConnectionMessage>& messages)
330 override;
330 331
331 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound 332 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound
332 // to the ID of the route that was terminated. 333 // to the ID of the route that was terminated.
333 void OnTerminateRouteResult(const MediaRoute::Id& route_id, 334 void OnTerminateRouteResult(const MediaRoute::Id& route_id,
334 const base::Optional<std::string>& error_text, 335 const base::Optional<std::string>& error_text,
335 RouteRequestResult::ResultCode result_code); 336 RouteRequestResult::ResultCode result_code);
336 337
337 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() 338 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute()
338 // into a local callback. 339 // into a local callback.
339 void RouteResponseReceived(const std::string& presentation_id, 340 void RouteResponseReceived(const std::string& presentation_id,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 #endif 433 #endif
433 434
434 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 435 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
435 436
436 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 437 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
437 }; 438 };
438 439
439 } // namespace media_router 440 } // namespace media_router
440 441
441 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 442 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698