type_entities_count.h 655 B

12345678910111213141516171819202122232425
  1. // Copyright 2014 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_MODEL_TYPE_ENTITIES_COUNT_H_
  5. #define COMPONENTS_SYNC_MODEL_TYPE_ENTITIES_COUNT_H_
  6. #include "components/sync/base/model_type.h"
  7. namespace syncer {
  8. // Used to track per data-type entity counts for debugging purposes.
  9. struct TypeEntitiesCount {
  10. explicit TypeEntitiesCount(ModelType type) : type(type) {}
  11. ModelType type;
  12. int entities = 0;
  13. int non_tombstone_entities = 0;
  14. };
  15. } // namespace syncer
  16. #endif // COMPONENTS_SYNC_MODEL_TYPE_ENTITIES_COUNT_H_