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 // Definition of ProgressMarkerMap and various utility functions. | 5 // Definition of ProgressMarkerMap and various utility functions. |
6 | 6 |
7 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_PROGRESS_MARKER_MAP_H_ | 7 #ifndef COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ |
8 #define SYNC_INTERNAL_API_PUBLIC_BASE_PROGRESS_MARKER_MAP_H_ | 8 #define COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "sync/base/sync_export.h" | 14 #include "components/sync/base/model_type.h" |
15 #include "sync/internal_api/public/base/model_type.h" | 15 #include "components/sync/base/sync_export.h" |
16 | 16 |
17 // TODO(akalin,mmontgomery): Move the non-exported functions in this file to a | 17 // TODO(akalin,mmontgomery): Move the non-exported functions in this file to a |
18 // private header. | 18 // private header. |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class DictionaryValue; | 21 class DictionaryValue; |
22 } | 22 } |
23 | 23 |
24 namespace syncer { | 24 namespace syncer { |
25 | 25 |
26 // A container that maps ModelType to serialized | 26 // A container that maps ModelType to serialized |
27 // DataTypeProgressMarkers. | 27 // DataTypeProgressMarkers. |
28 typedef std::map<ModelType, std::string> ProgressMarkerMap; | 28 typedef std::map<ModelType, std::string> ProgressMarkerMap; |
29 | 29 |
30 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ProgressMarkerMapToValue( | 30 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ProgressMarkerMapToValue( |
31 const ProgressMarkerMap& marker_map); | 31 const ProgressMarkerMap& marker_map); |
32 | 32 |
33 } // namespace syncer | 33 } // namespace syncer |
34 | 34 |
35 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_PROGRESS_MARKER_MAP_H_ | 35 #endif // COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ |
OLD | NEW |