commit | f8e3c13032f8c40dd9cd1b5c8041e72927b651c5 | [log] [tgz] |
---|---|---|
author | Hong Xu <[email protected]> | Wed Jun 01 01:49:21 2022 |
committer | Chromium LUCI CQ <[email protected]> | Wed Jun 01 01:49:21 2022 |
tree | 7d52ddd7606fe0100107b3d8b4e3c53d44213f4a | |
parent | 0bb61e7aa524fc9787d0a203bebe46cc67cef6b3 [diff] [blame] |
Make ResourceInterface::Get* const Sync from missive: crrev.com/c/3681518 Bug: b:214039157 Change-Id: I95d275ae53b40881d74676846a76946829e42c90 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3681626 Commit-Queue: Hong Xu <[email protected]> Reviewed-by: Leonid Baraz <[email protected]> Auto-Submit: Hong Xu <[email protected]> Commit-Queue: Leonid Baraz <[email protected]> Cr-Commit-Position: refs/heads/main@{#1009402}
diff --git a/components/reporting/resources/resource_interface.h b/components/reporting/resources/resource_interface.h index 1e0e9e2..235f42f 100644 --- a/components/reporting/resources/resource_interface.h +++ b/components/reporting/resources/resource_interface.h
@@ -29,10 +29,10 @@ virtual void Discard(uint64_t size) = 0; // Returns total amount. - virtual uint64_t GetTotal() = 0; + virtual uint64_t GetTotal() const = 0; // Returns current used amount. - virtual uint64_t GetUsed() = 0; + virtual uint64_t GetUsed() const = 0; // Test only: Sets non-default usage limit. virtual void Test_SetTotal(uint64_t test_total) = 0;