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

Side by Side Diff: services/service_manager/public/cpp/capabilities_struct_traits.h

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 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
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_
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/capabilities.typemap ('k') | services/service_manager/public/cpp/connect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698