| Index: components/sync/core/shared_model_type_processor.h
|
| diff --git a/components/sync/core/shared_model_type_processor.h b/components/sync/core/shared_model_type_processor.h
|
| index 0e27e345541361eda039b1800f3dea075c5a5c8a..acafca7bacbfddaf8970d83ef9850fa05ae01731 100644
|
| --- a/components/sync/core/shared_model_type_processor.h
|
| +++ b/components/sync/core/shared_model_type_processor.h
|
| @@ -22,6 +22,7 @@
|
| #include "components/sync/base/model_type.h"
|
| #include "components/sync/core/model_type_processor.h"
|
| #include "components/sync/core/non_blocking_sync_common.h"
|
| +#include "components/sync/engine/cycle/status_counters.h"
|
| #include "components/sync/protocol/model_type_state.pb.h"
|
| #include "components/sync/protocol/sync.pb.h"
|
|
|
| @@ -56,10 +57,14 @@ class SharedModelTypeProcessor : public ModelTypeProcessor,
|
| // Used for populating nodes in Sync Node Browser of chrome://sync-internals.
|
| // TODO(gangwu): GetAllNodes could be in a helper class.
|
| void GetAllNodes(
|
| - const scoped_refptr<base::TaskRunner>& task_runner,
|
| const base::Callback<void(const ModelType type,
|
| std::unique_ptr<base::ListValue>)>& callback);
|
|
|
| + // Returns StatusCounters for data type to |callback|.
|
| + // Used for updating data type counters in chrome://sync-internals.
|
| + void GetStatusCounters(
|
| + const base::Callback<void(ModelType, const StatusCounters&)>& callback);
|
| +
|
| // ModelTypeChangeProcessor implementation.
|
| void Put(const std::string& storage_key,
|
| std::unique_ptr<EntityData> entity_data,
|
| @@ -153,7 +158,6 @@ class SharedModelTypeProcessor : public ModelTypeProcessor,
|
| // This is callback function for ModelTypeService::GetAllData. This function
|
| // will merge real data |batch| with metadata, then pass to |callback|.
|
| void MergeDataWithMetadata(
|
| - const scoped_refptr<base::TaskRunner>& task_runner,
|
| const base::Callback<void(const ModelType,
|
| std::unique_ptr<base::ListValue>)>& callback,
|
| SyncError error,
|
|
|