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

Side by Side Diff: content/browser/renderer_host/memory_benchmark_message_filter.h

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/browser/browser_message_filter.h" 10 #include "content/public/browser/browser_message_filter.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class MemoryBenchmarkMessageFilter : public BrowserMessageFilter { 14 class MemoryBenchmarkMessageFilter : public BrowserMessageFilter {
15 public: 15 public:
16 MemoryBenchmarkMessageFilter(); 16 MemoryBenchmarkMessageFilter();
17 17
18 virtual bool OnMessageReceived(const IPC::Message& message, 18 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
19 bool* message_was_ok) OVERRIDE;
20 private: 19 private:
21 virtual ~MemoryBenchmarkMessageFilter(); 20 virtual ~MemoryBenchmarkMessageFilter();
22 21
23 void OnHeapProfilerDump(const std::string& reason); 22 void OnHeapProfilerDump(const std::string& reason);
24 23
25 DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkMessageFilter); 24 DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkMessageFilter);
26 }; 25 };
27 26
28 } // namespace content 27 } // namespace content
29 28
30 #endif // CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_ 29 #endif // CONTENT_BROWSER_RENDERER_HOST_MEMORY_BENCHMARK_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698