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 |
| 5 #ifndef SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_PREFERENCE_VALIDATION_DELEGATE_S
TRUCT_TRAITS_H_ |
| 6 #define SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_PREFERENCE_VALIDATION_DELEGATE_S
TRUCT_TRAITS_H_ |
| 7 |
| 8 #include "components/user_prefs/tracked/pref_hash_store_transaction.h" |
| 9 #include "mojo/public/cpp/bindings/enum_traits.h" |
| 10 #include "services/preferences/public/interfaces/tracked_preference_validation_d
elegate.mojom-shared.h" |
| 11 |
| 12 namespace mojo { |
| 13 |
| 14 template <> |
| 15 struct EnumTraits< |
| 16 ::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState, |
| 17 ::PrefHashStoreTransaction::ValueState> { |
| 18 static prefs::mojom::TrackedPreferenceValidationDelegate_ValueState ToMojom( |
| 19 PrefHashStoreTransaction::ValueState input); |
| 20 |
| 21 static bool FromMojom( |
| 22 prefs::mojom::TrackedPreferenceValidationDelegate_ValueState input, |
| 23 PrefHashStoreTransaction::ValueState* output); |
| 24 }; |
| 25 |
| 26 } // namespace mojo |
| 27 |
| 28 #endif // SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_PREFERENCE_VALIDATION_DELEGAT
E_STRUCT_TRAITS_H_ |
OLD | NEW |