Home | History | Annotate | Download | only in renderer_host
      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   virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
     19  private:
     20   virtual ~MemoryBenchmarkMessageFilter();
     21 
     22   void OnHeapProfilerDump(const std::string& reason);
     23 
     24   DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkMessageFilter);
     25 };
     26 
     27 }  // namespace content
     28 
     29 #endif  // CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_
     30