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

Unified Diff: services/service_manager/public/cpp/service_info_struct_traits.h

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
Index: services/service_manager/public/cpp/service_info_struct_traits.h
diff --git a/services/service_manager/public/cpp/service_info_struct_traits.h b/services/service_manager/public/cpp/service_info_struct_traits.h
deleted file mode 100644
index c80891c7db34b6e262503a4acf16f3c0c0e61c90..0000000000000000000000000000000000000000
--- a/services/service_manager/public/cpp/service_info_struct_traits.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_INFO_STRUCT_TRAITS_H_
-#define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_INFO_STRUCT_TRAITS_H_
-
-#include "services/service_manager/public/cpp/service_info.h"
-#include "services/service_manager/public/interfaces/service.mojom.h"
-
-namespace mojo {
-
-template <>
-struct StructTraits<service_manager::mojom::ServiceInfo::DataView,
- service_manager::ServiceInfo> {
- static const service_manager::InterfaceProviderSpecMap&
- interface_provider_specs(const service_manager::ServiceInfo& info) {
- return info.interface_provider_specs;
- }
- static const service_manager::Identity& identity(
- const service_manager::ServiceInfo& info) {
- return info.identity;
- }
- static bool Read(service_manager::mojom::ServiceInfoDataView data,
- service_manager::ServiceInfo* out) {
- return data.ReadIdentity(&out->identity) &&
- data.ReadInterfaceProviderSpecs(&out->interface_provider_specs);
- }
-};
-
-} // namespace mojo
-
-#endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_INFO_STRUCT_TRAITS_H_
« no previous file with comments | « services/service_manager/public/cpp/service_info.typemap ('k') | services/service_manager/public/cpp/service_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698