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

Side by Side Diff: services/preferences/public/cpp/preferences_struct_traits.h

Issue 2601873002: Add a mojo bridge for PersistentPrefStore. (Closed)
Patch Set: rebase Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(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_PREFERENCES_STRUCT_TRAITS_H_
6 #define SERVICES_PREFERENCES_PUBLIC_CPP_PREFERENCES_STRUCT_TRAITS_H_
7
8 #include "components/prefs/persistent_pref_store.h"
9 #include "mojo/public/cpp/bindings/enum_traits.h"
10 #include "services/preferences/public/interfaces/preferences.mojom-shared.h"
11
12 namespace mojo {
13
14 template <>
15 struct EnumTraits<::prefs::mojom::PersistentPrefStoreConnector_ReadError,
16 ::PersistentPrefStore::PrefReadError> {
17 static prefs::mojom::PersistentPrefStoreConnector_ReadError ToMojom(
18 PersistentPrefStore::PrefReadError input);
19
20 static bool FromMojom(
21 prefs::mojom::PersistentPrefStoreConnector_ReadError input,
22 PersistentPrefStore::PrefReadError* output);
23 };
24
25 } // namespace mojo
26
27 #endif // SERVICES_PREFERENCES_PUBLIC_CPP_PREFERENCES_STRUCT_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698