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

Side by Side Diff: chrome/browser/cache_stats_recorder.h

Issue 2643183002: Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_CACHE_STATS_RECORDER_H_
6 #define CHROME_BROWSER_CACHE_STATS_RECORDER_H_
7
8 #include "base/threading/thread_checker.h"
9 #include "chrome/common/cache_stats_recorder.mojom.h"
10
11 class CacheStatsRecorder : public chrome::mojom::CacheStatsRecorder {
12 public:
13 explicit CacheStatsRecorder(int render_process_id);
14 ~CacheStatsRecorder() override;
15
16 static void Create(int render_process_id,
17 chrome::mojom::CacheStatsRecorderRequest request);
18
19 private:
20 // chrome::mojom::CacheStatsRecorder:
21 void RecordCacheStats(uint64_t capacity, uint64_t size) override;
22
23 int render_process_id_;
Sam McNally 2017/01/24 04:06:15 const
nigeltao1 2017/02/02 05:20:59 Done.
24
25 base::ThreadChecker thread_checker_;
26
27 DISALLOW_COPY_AND_ASSIGN(CacheStatsRecorder);
28 };
29
30 #endif // CHROME_BROWSER_CACHE_STATS_RECORDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698