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

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

Issue 2951523002: Media Remoting: Add mojo interfaces between browser and extension. (Closed)
Patch Set: Rebased again. 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
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<content::PresentationConnectionMessage>& messages) 329 const std::vector<content::PresentationConnectionMessage>& messages)
330 override; 330 override;
331 void OnMediaRemoterCreated(
332 int32_t tab_id,
333 media::mojom::MirrorServiceRemoterPtr remoter,
334 media::mojom::MirrorServiceRemotingSourceRequest source_request) override;
331 335
332 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound 336 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound
333 // to the ID of the route that was terminated. 337 // to the ID of the route that was terminated.
334 void OnTerminateRouteResult(const MediaRoute::Id& route_id, 338 void OnTerminateRouteResult(const MediaRoute::Id& route_id,
335 const base::Optional<std::string>& error_text, 339 const base::Optional<std::string>& error_text,
336 RouteRequestResult::ResultCode result_code); 340 RouteRequestResult::ResultCode result_code);
337 341
338 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() 342 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute()
339 // into a local callback. 343 // into a local callback.
340 void RouteResponseReceived(const std::string& presentation_id, 344 void RouteResponseReceived(const std::string& presentation_id,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 #endif 437 #endif
434 438
435 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 439 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
436 440
437 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 441 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
438 }; 442 };
439 443
440 } // namespace media_router 444 } // namespace media_router
441 445
442 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 446 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/media_router_base.cc ('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