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 SERVICES_SHELL_PUBLIC_CPP_CAPABILITIES_STRUCT_TRAITS_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CAPABILITIES_STRUCT_TRAITS_H_ |
6 #define SERVICES_SHELL_PUBLIC_CPP_CAPABILITIES_STRUCT_TRAITS_H_ | 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CAPABILITIES_STRUCT_TRAITS_H_ |
7 | 7 |
8 #include "services/shell/public/cpp/capabilities.h" | 8 #include "services/service_manager/public/cpp/capabilities.h" |
9 #include "services/shell/public/interfaces/capabilities.mojom.h" | 9 #include "services/service_manager/public/interfaces/capabilities.mojom.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 | 12 |
13 template <> | 13 template <> |
14 struct StructTraits<shell::mojom::CapabilitySpec::DataView, | 14 struct StructTraits<shell::mojom::CapabilitySpec::DataView, |
15 shell::CapabilitySpec> { | 15 shell::CapabilitySpec> { |
16 static const std::map<shell::Class, shell::Interfaces>& provided( | 16 static const std::map<shell::Class, shell::Interfaces>& provided( |
17 const shell::CapabilitySpec& spec) { | 17 const shell::CapabilitySpec& spec) { |
18 return spec.provided; | 18 return spec.provided; |
19 } | 19 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 if (!classes_data_view.Read(i, &class_name)) | 68 if (!classes_data_view.Read(i, &class_name)) |
69 return false; | 69 return false; |
70 out->insert(std::move(class_name)); | 70 out->insert(std::move(class_name)); |
71 } | 71 } |
72 return true; | 72 return true; |
73 } | 73 } |
74 }; | 74 }; |
75 | 75 |
76 } // namespace mojo | 76 } // namespace mojo |
77 | 77 |
78 #endif // SERVICES_SHELL_PUBLIC_CPP_CAPABILITIES_STRUCT_TRAITS_H_ | 78 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CAPABILITIES_STRUCT_TRAITS_H_ |
OLD | NEW |