Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Unified Diff: chrome/browser/cache_stats_recorder.h

Issue 2643183002: Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. (Closed)
Patch Set: Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/cache_stats_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cache_stats_recorder.h
diff --git a/chrome/browser/cache_stats_recorder.h b/chrome/browser/cache_stats_recorder.h
new file mode 100644
index 0000000000000000000000000000000000000000..c4c352d16f91a50f72609892aa010249fca01c7f
--- /dev/null
+++ b/chrome/browser/cache_stats_recorder.h
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CACHE_STATS_RECORDER_H_
+#define CHROME_BROWSER_CACHE_STATS_RECORDER_H_
+
+#include "chrome/common/cache_stats_recorder.mojom.h"
+
+class CacheStatsRecorder : public chrome::mojom::CacheStatsRecorder {
+ public:
+ explicit CacheStatsRecorder(int render_process_id);
+ ~CacheStatsRecorder() override;
+
+ static void Create(
+ int render_process_id,
+ chrome::mojom::CacheStatsRecorderAssociatedRequest request);
+
+ private:
+ // chrome::mojom::CacheStatsRecorder:
+ void RecordCacheStats(uint64_t capacity, uint64_t size) override;
+
+ const int render_process_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(CacheStatsRecorder);
+};
+
+#endif // CHROME_BROWSER_CACHE_STATS_RECORDER_H_
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/cache_stats_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698