OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_CLOUD_DEVICES_COMMON_DESCRIPTION_DESCRIPTION_ITEMS_INL_H_ | 5 #ifndef COMPONENTS_CLOUD_DEVICES_COMMON_DESCRIPTION_DESCRIPTION_ITEMS_INL_H_ |
6 #define COMPONENTS_CLOUD_DEVICES_COMMON_DESCRIPTION_DESCRIPTION_ITEMS_INL_H_ | 6 #define COMPONENTS_CLOUD_DEVICES_COMMON_DESCRIPTION_DESCRIPTION_ITEMS_INL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/numerics/safe_conversions.h" | 12 #include "base/numerics/safe_conversions.h" |
11 #include "components/cloud_devices/common/description_items.h" | 13 #include "components/cloud_devices/common/description_items.h" |
12 | 14 |
13 // Implementation of templates defined in header file. | 15 // Implementation of templates defined in header file. |
14 // This file should be included from CC file with implementation of device | 16 // This file should be included from CC file with implementation of device |
15 // specific capabilities. | 17 // specific capabilities. |
16 | 18 |
17 namespace cloud_devices { | 19 namespace cloud_devices { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 template <class Option, class Traits> | 246 template <class Option, class Traits> |
245 void TicketItem<Option, Traits>::SaveTo( | 247 void TicketItem<Option, Traits>::SaveTo( |
246 CloudDeviceDescription* description) const { | 248 CloudDeviceDescription* description) const { |
247 DCHECK(IsValid()); | 249 DCHECK(IsValid()); |
248 Traits::Save(value(), description->CreateItem(Traits::GetTicketItemPath())); | 250 Traits::Save(value(), description->CreateItem(Traits::GetTicketItemPath())); |
249 } | 251 } |
250 | 252 |
251 } // namespace cloud_devices | 253 } // namespace cloud_devices |
252 | 254 |
253 #endif // COMPONENTS_CLOUD_DEVICES_COMMON_DESCRIPTION_DESCRIPTION_ITEMS_INL_H_ | 255 #endif // COMPONENTS_CLOUD_DEVICES_COMMON_DESCRIPTION_DESCRIPTION_ITEMS_INL_H_ |
OLD | NEW |