|
OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 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_PROFILER_MESSAGE_FILTER_H_ | |
6 #define CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/process.h" | |
jam
2011/11/28 15:17:34
not needed
ramant (doing other things)
2011/11/29 01:32:20
Done.
| |
11 #include "content/common/child_process_info.h" | |
jam
2011/11/28 15:17:34
ditto
ramant (doing other things)
2011/11/29 01:32:20
Done.
| |
12 #include "content/browser/browser_message_filter.h" | |
13 | |
14 namespace base { | |
15 class DictionaryValue; | |
16 } | |
17 | |
18 // This class sends and receives profiler messages in the browser process. | |
19 // See also: child_profiler_message_filter.h | |
20 class ProfilerMessageFilter : public BrowserMessageFilter { | |
21 public: | |
22 ProfilerMessageFilter(); | |
23 virtual ~ProfilerMessageFilter(); | |
24 | |
25 // BrowserMessageFilter implementation. | |
26 virtual bool OnMessageReceived(const IPC::Message& message, | |
27 bool* message_was_ok); | |
28 | |
29 private: | |
30 // Message handlers. | |
31 void OnChildProfilerData(int sequence_number, | |
32 const base::DictionaryValue& profiler_data); | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter); | |
35 }; | |
36 | |
37 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ | |
38 | |
OLD | NEW |