OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 #ifndef SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_ID_H_ | |
5 #define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_ID_H_ | |
6 | |
7 #include <string> | |
8 | |
9 #include "services/resource_coordinator/public/cpp/coordination_unit_types.h" | |
10 | |
11 namespace resource_coordinator { | |
12 | |
13 struct CoordinationUnitID { | |
14 CoordinationUnitID(); | |
15 CoordinationUnitID(const CoordinationUnitType& type, const std::string& id); | |
16 | |
17 bool operator==(const CoordinationUnitID& b) const { | |
18 return id == b.id && type == b.type; | |
19 } | |
20 | |
21 int32_t id; | |
Primiano Tucci (use gerrit)
2017/04/06 18:09:47
should these be immutable (+const both)?
oystein (OOO til 10th of July)
2017/04/10 20:03:00
That doesn't seem to play well with the Mojo seria
| |
22 CoordinationUnitType type; | |
23 }; | |
24 | |
25 } // resource_coordinator | |
26 | |
27 #endif // SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_ID_H_ | |
OLD | NEW |