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

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

Issue 2771413003: Move c/b/media/router/mojo/*.mojom to chrome/common/media_router/mojo/*.mojom (Closed)
Patch Set: Rebase Created 3 years, 8 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_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ 5 #ifndef CHROME_COMMON_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_
6 #define CHROME_BROWSER_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/browser/media/router/discovery/media_sink_internal.h" 10 #include "chrome/common/media_router/discovery/media_sink_internal.h"
11 #include "chrome/browser/media/router/issue.h" 11 #include "chrome/common/media_router/issue.h"
12 #include "chrome/browser/media/router/mojo/media_router.mojom.h" 12 #include "chrome/common/media_router/mojo/media_router.mojom.h"
13 #include "chrome/browser/media/router/route_request_result.h" 13 #include "chrome/common/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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 case media_router::mojom::RouteRequestResultCode::CANCELLED: 560 case media_router::mojom::RouteRequestResultCode::CANCELLED:
561 *output = media_router::RouteRequestResult::CANCELLED; 561 *output = media_router::RouteRequestResult::CANCELLED;
562 return true; 562 return true;
563 } 563 }
564 return false; 564 return false;
565 } 565 }
566 }; 566 };
567 567
568 } // namespace mojo 568 } // namespace mojo
569 569
570 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_ 570 #endif // CHROME_COMMON_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_STRUCT_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698