OLD | NEW |
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_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ | 5 #ifndef COMPONENTS_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ |
6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ | 6 #define COMPONENTS_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/media/router/discovery/media_sink_internal.h" | 10 #include "components/media_router/discovery/media_sink_internal.h" |
11 #include "chrome/browser/media/router/issue.h" | 11 #include "components/media_router/issue.h" |
12 #include "chrome/browser/media/router/mojo/media_router.mojom.h" | 12 #include "components/media_router/mojo/media_router.mojom.h" |
13 #include "chrome/browser/media/router/route_request_result.h" | 13 #include "components/media_router/route_request_result.h" |
14 #include "mojo/common/common_custom_types_struct_traits.h" | 14 #include "mojo/common/common_custom_types_struct_traits.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 | 17 |
18 // Issue | 18 // Issue |
19 | 19 |
20 template <> | 20 template <> |
21 struct EnumTraits<media_router::mojom::Issue::ActionType, | 21 struct EnumTraits<media_router::mojom::Issue::ActionType, |
22 media_router::IssueInfo::Action> { | 22 media_router::IssueInfo::Action> { |
23 static media_router::mojom::Issue::ActionType ToMojom( | 23 static media_router::mojom::Issue::ActionType ToMojom( |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 case media_router::mojom::RouteRequestResultCode::CANCELLED: | 555 case media_router::mojom::RouteRequestResultCode::CANCELLED: |
556 *output = media_router::RouteRequestResult::CANCELLED; | 556 *output = media_router::RouteRequestResult::CANCELLED; |
557 return true; | 557 return true; |
558 } | 558 } |
559 return false; | 559 return false; |
560 } | 560 } |
561 }; | 561 }; |
562 | 562 |
563 } // namespace mojo | 563 } // namespace mojo |
564 | 564 |
565 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ | 565 #endif // COMPONENTS_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ |
OLD | NEW |