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 #include "mojo/shell/public/cpp/capabilities.h" | 5 #include "services/shell/public/cpp/capabilities.h" |
6 | 6 |
7 namespace mojo { | 7 namespace mojo { |
8 | 8 |
9 CapabilityRequest::CapabilityRequest() {} | 9 CapabilityRequest::CapabilityRequest() {} |
10 CapabilityRequest::CapabilityRequest(const CapabilityRequest& other) = default; | 10 CapabilityRequest::CapabilityRequest(const CapabilityRequest& other) = default; |
11 CapabilityRequest::~CapabilityRequest() {} | 11 CapabilityRequest::~CapabilityRequest() {} |
12 | 12 |
13 bool CapabilityRequest::operator==(const CapabilityRequest& other) const { | 13 bool CapabilityRequest::operator==(const CapabilityRequest& other) const { |
14 return other.classes == classes && other.interfaces == interfaces; | 14 return other.classes == classes && other.interfaces == interfaces; |
15 } | 15 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 TypeConverter<CapabilityRequest, | 73 TypeConverter<CapabilityRequest, |
74 shell::mojom::CapabilityRequestPtr>::Convert( | 74 shell::mojom::CapabilityRequestPtr>::Convert( |
75 const shell::mojom::CapabilityRequestPtr& input) { | 75 const shell::mojom::CapabilityRequestPtr& input) { |
76 CapabilityRequest request; | 76 CapabilityRequest request; |
77 request.classes = input->classes.To<std::set<std::string>>(); | 77 request.classes = input->classes.To<std::set<std::string>>(); |
78 request.interfaces = input->interfaces.To<std::set<std::string>>(); | 78 request.interfaces = input->interfaces.To<std::set<std::string>>(); |
79 return request; | 79 return request; |
80 } | 80 } |
81 | 81 |
82 } // namespace mojo | 82 } // namespace mojo |
OLD | NEW |