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

Side by Side Diff: chrome/common/media_router/mojo/media_router_struct_traits.h

Issue 2938173004: [Media Router] Add a supports_web_ui_controller attribute to MediaRoute (Closed)
Patch Set: Rebase Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ 5 #ifndef CHROME_COMMON_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_
6 #define CHROME_COMMON_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ 6 #define CHROME_COMMON_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/common/media_router/discovery/media_sink_internal.h" 10 #include "chrome/common/media_router/discovery/media_sink_internal.h"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 return route.is_local(); 378 return route.is_local();
379 } 379 }
380 380
381 static base::Optional<std::string> custom_controller_path( 381 static base::Optional<std::string> custom_controller_path(
382 const media_router::MediaRoute& route) { 382 const media_router::MediaRoute& route) {
383 return route.custom_controller_path().empty() 383 return route.custom_controller_path().empty()
384 ? base::Optional<std::string>() 384 ? base::Optional<std::string>()
385 : base::make_optional(route.custom_controller_path()); 385 : base::make_optional(route.custom_controller_path());
386 } 386 }
387 387
388 static bool supports_media_route_controller(
389 const media_router::MediaRoute& route) {
390 return route.supports_media_route_controller();
391 }
392
388 static bool for_display(const media_router::MediaRoute& route) { 393 static bool for_display(const media_router::MediaRoute& route) {
389 return route.for_display(); 394 return route.for_display();
390 } 395 }
391 396
392 static bool is_incognito(const media_router::MediaRoute& route) { 397 static bool is_incognito(const media_router::MediaRoute& route) {
393 return route.is_incognito(); 398 return route.is_incognito();
394 } 399 }
395 400
396 static bool is_offscreen_presentation(const media_router::MediaRoute& route) { 401 static bool is_offscreen_presentation(const media_router::MediaRoute& route) {
397 return route.is_offscreen_presentation(); 402 return route.is_offscreen_presentation();
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 *output = media_router::RouteRequestResult::CANCELLED; 566 *output = media_router::RouteRequestResult::CANCELLED;
562 return true; 567 return true;
563 } 568 }
564 return false; 569 return false;
565 } 570 }
566 }; 571 };
567 572
568 } // namespace mojo 573 } // namespace mojo
569 574
570 #endif // CHROME_COMMON_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ 575 #endif // CHROME_COMMON_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « chrome/common/media_router/mojo/media_router.mojom ('k') | chrome/common/media_router/mojo/media_router_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698