OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_SYNC_BASE_PROGRESS_MARKER_MAP_H_ | 5 #ifndef COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ |
6 #define COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ | 6 #define COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "components/sync/base/model_type.h" | 12 #include "components/sync/base/model_type.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class DictionaryValue; | 15 class DictionaryValue; |
16 } | 16 } |
17 | 17 |
18 namespace syncer { | 18 namespace syncer { |
19 | 19 |
20 // A container that maps ModelType to serialized | 20 // A container that maps ModelType to serialized |
21 // DataTypeProgressMarkers. | 21 // DataTypeProgressMarkers. |
22 typedef std::map<ModelType, std::string> ProgressMarkerMap; | 22 using ProgressMarkerMap = std::map<ModelType, std::string>; |
23 | 23 |
24 std::unique_ptr<base::DictionaryValue> ProgressMarkerMapToValue( | 24 std::unique_ptr<base::DictionaryValue> ProgressMarkerMapToValue( |
25 const ProgressMarkerMap& marker_map); | 25 const ProgressMarkerMap& marker_map); |
26 | 26 |
27 } // namespace syncer | 27 } // namespace syncer |
28 | 28 |
29 #endif // COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ | 29 #endif // COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ |
OLD | NEW |