Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / browser / renderer_host / memory_benchmark_message_filter.h
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 "content/public/browser/browser_message_filter.h"
11
12 namespace content {
13
14 class MemoryBenchmarkMessageFilter : public BrowserMessageFilter {
15  public:
16   MemoryBenchmarkMessageFilter();
17
18   bool OnMessageReceived(const IPC::Message& message) override;
19
20  private:
21   ~MemoryBenchmarkMessageFilter() override;
22
23   void OnHeapProfilerDump(const std::string& reason);
24
25   DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkMessageFilter);
26 };
27
28 }  // namespace content
29
30 #endif  // CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_