OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 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 CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_ | |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 #include "content/public/browser/browser_message_filter.h" | |
12 | |
13 namespace content { | |
14 | |
15 class MemoryBenchmarkMessageFilter : public BrowserMessageFilter { | |
16 public: | |
17 MemoryBenchmarkMessageFilter(); | |
18 | |
19 bool OnMessageReceived(const IPC::Message& message) override; | |
20 | |
21 private: | |
22 ~MemoryBenchmarkMessageFilter() override; | |
23 | |
24 void OnHeapProfilerDump(const std::string& reason); | |
25 | |
26 DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkMessageFilter); | |
27 }; | |
28 | |
29 } // namespace content | |
30 | |
31 #endif // CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_ | |
OLD | NEW |