progress_marker_map.h 757 B

1234567891011121314151617181920212223242526272829
  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
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_
  5. #define COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_
  6. #include <map>
  7. #include <memory>
  8. #include <string>
  9. #include "components/sync/base/model_type.h"
  10. namespace base {
  11. class DictionaryValue;
  12. }
  13. namespace syncer {
  14. // A container that maps ModelType to serialized
  15. // DataTypeProgressMarkers.
  16. using ProgressMarkerMap = std::map<ModelType, std::string>;
  17. std::unique_ptr<base::DictionaryValue> ProgressMarkerMapToValue(
  18. const ProgressMarkerMap& marker_map);
  19. } // namespace syncer
  20. #endif // COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_