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

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

Issue 2675033002: [Media Router] Add MediaSink subtypes (Closed)
Patch Set: add url.mojom to media_router.mojoms JsResources Created 3 years, 10 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // Error handler callback for |binding_| and |media_route_provider_|. 278 // Error handler callback for |binding_| and |media_route_provider_|.
279 void OnConnectionError(); 279 void OnConnectionError();
280 280
281 // mojom::MediaRouter implementation. 281 // mojom::MediaRouter implementation.
282 void RegisterMediaRouteProvider( 282 void RegisterMediaRouteProvider(
283 mojom::MediaRouteProviderPtr media_route_provider_ptr, 283 mojom::MediaRouteProviderPtr media_route_provider_ptr,
284 const mojom::MediaRouter::RegisterMediaRouteProviderCallback& 284 const mojom::MediaRouter::RegisterMediaRouteProviderCallback&
285 callback) override; 285 callback) override;
286 void OnIssue(const IssueInfo& issue) override; 286 void OnIssue(const IssueInfo& issue) override;
287 void OnSinksReceived(const std::string& media_source, 287 void OnSinksReceived(const std::string& media_source,
288 std::vector<mojom::MediaSinkPtr> sinks, 288 std::vector<std::unique_ptr<MediaSink>> sinks,
289 const std::vector<std::string>& origins) override; 289 const std::vector<std::string>& origins) override;
290 void OnRoutesUpdated( 290 void OnRoutesUpdated(
291 std::vector<mojom::MediaRoutePtr> routes, 291 std::vector<mojom::MediaRoutePtr> routes,
292 const std::string& media_source, 292 const std::string& media_source,
293 const std::vector<std::string>& joinable_route_ids) override; 293 const std::vector<std::string>& joinable_route_ids) override;
294 void OnSinkAvailabilityUpdated( 294 void OnSinkAvailabilityUpdated(
295 mojom::MediaRouter::SinkAvailability availability) override; 295 mojom::MediaRouter::SinkAvailability availability) override;
296 void OnPresentationConnectionStateChanged( 296 void OnPresentationConnectionStateChanged(
297 const std::string& route_id, 297 const std::string& route_id,
298 mojom::MediaRouter::PresentationConnectionState state) override; 298 mojom::MediaRouter::PresentationConnectionState state) override;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 #endif 429 #endif
430 430
431 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 431 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
432 432
433 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 433 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
434 }; 434 };
435 435
436 } // namespace media_router 436 } // namespace media_router
437 437
438 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 438 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698