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

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

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

Powered by Google App Engine
This is Rietveld 408576698