API to expose data usage history in the UI thread.
commitb45f9513684f4acc61abad4341f76090ae9a2955
authorkundaji <kundaji@chromium.org>
Wed, 9 Sep 2015 19:29:16 +0000 (9 12:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 9 Sep 2015 19:29:55 +0000 (9 19:29 +0000)
tree4ffe9851f096646dc1410d58dc2ec7b8fd6f6703
parent322cdd03393c80900c702c246001e4a09fb60a4b
API to expose data usage history in the UI thread.

Flush unsaved data usage to disk and then read all stored data usage.
Data usage is returned in a vector sorted in chronological order and
the last entry contains data usage for current interval.

BUG=482442

Review URL: https://codereview.chromium.org/1319863005

Cr-Commit-Position: refs/heads/master@{#347976}
12 files changed:
components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
components/data_reduction_proxy/core/browser/data_usage_store.cc
components/data_reduction_proxy/core/browser/data_usage_store.h
components/data_reduction_proxy/core/browser/data_usage_store_unittest.cc
components/data_reduction_proxy/core/browser/db_data_owner.cc
components/data_reduction_proxy/core/browser/db_data_owner.h