1 // Copyright 2017 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.
5 #ifndef CHROME_BROWSER_CACHE_STATS_RECORDER_H_
6 #define CHROME_BROWSER_CACHE_STATS_RECORDER_H_
8 #include "chrome/common/cache_stats_recorder.mojom.h"
10 class CacheStatsRecorder : public chrome::mojom::CacheStatsRecorder {
12 explicit CacheStatsRecorder(int render_process_id);
13 ~CacheStatsRecorder() override;
16 int render_process_id,
17 mojo::PendingAssociatedReceiver<chrome::mojom::CacheStatsRecorder>
21 // chrome::mojom::CacheStatsRecorder:
22 void RecordCacheStats(uint64_t capacity, uint64_t size) override;
24 const int render_process_id_;
26 DISALLOW_COPY_AND_ASSIGN(CacheStatsRecorder);
29 #endif // CHROME_BROWSER_CACHE_STATS_RECORDER_H_