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

Side by Side Diff: content/browser/profiler_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROFILER_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_PROFILER_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 tracked_objects { 12 namespace tracked_objects {
13 struct ProcessDataSnapshot; 13 struct ProcessDataSnapshot;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 // This class sends and receives profiler messages in the browser process. 18 // This class sends and receives profiler messages in the browser process.
19 class ProfilerMessageFilter : public BrowserMessageFilter { 19 class ProfilerMessageFilter : public BrowserMessageFilter {
20 public: 20 public:
21 explicit ProfilerMessageFilter(int process_type); 21 explicit ProfilerMessageFilter(int process_type);
22 22
23 // BrowserMessageFilter implementation. 23 // BrowserMessageFilter implementation.
24 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 24 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
25 25
26 // BrowserMessageFilter implementation. 26 // BrowserMessageFilter implementation.
27 virtual bool OnMessageReceived(const IPC::Message& message, 27 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
28 bool* message_was_ok) OVERRIDE;
29 28
30 protected: 29 protected:
31 virtual ~ProfilerMessageFilter(); 30 virtual ~ProfilerMessageFilter();
32 31
33 private: 32 private:
34 // Message handlers. 33 // Message handlers.
35 void OnChildProfilerData( 34 void OnChildProfilerData(
36 int sequence_number, 35 int sequence_number,
37 const tracked_objects::ProcessDataSnapshot& profiler_data); 36 const tracked_objects::ProcessDataSnapshot& profiler_data);
38 37
39 #if defined(USE_TCMALLOC) 38 #if defined(USE_TCMALLOC)
40 void OnTcmallocStats(const std::string& output); 39 void OnTcmallocStats(const std::string& output);
41 #endif 40 #endif
42 41
43 int process_type_; 42 int process_type_;
44 43
45 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter); 44 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter);
46 }; 45 };
47 46
48 } // namespace content 47 } // namespace content
49 48
50 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ 49 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/mime_registry_message_filter.cc ('k') | content/browser/profiler_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698