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

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. 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
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<RouteMessage>& messages) override;
330 void OnMediaRemoterCreated(
331 int32_t tab_id,
332 media::mojom::MirrorServiceRemoterPtr remoter,
333 media::mojom::MirrorServiceRemotingSourceRequest source_request) override;
330 334
331 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound 335 // Result callback when Mojo terminateRoute is invoked. |route_id| is bound
332 // to the ID of the route that was terminated. 336 // to the ID of the route that was terminated.
333 void OnTerminateRouteResult(const MediaRoute::Id& route_id, 337 void OnTerminateRouteResult(const MediaRoute::Id& route_id,
334 const base::Optional<std::string>& error_text, 338 const base::Optional<std::string>& error_text,
335 RouteRequestResult::ResultCode result_code); 339 RouteRequestResult::ResultCode result_code);
336 340
337 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() 341 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute()
338 // into a local callback. 342 // into a local callback.
339 void RouteResponseReceived(const std::string& presentation_id, 343 void RouteResponseReceived(const std::string& presentation_id,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 #endif 436 #endif
433 437
434 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 438 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
435 439
436 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 440 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
437 }; 441 };
438 442
439 } // namespace media_router 443 } // namespace media_router
440 444
441 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 445 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698