OLD | NEW |
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" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 protected: | 30 protected: |
31 ~ProfilerMessageFilter() override; | 31 ~ProfilerMessageFilter() override; |
32 | 32 |
33 private: | 33 private: |
34 // Message handlers. | 34 // Message handlers. |
35 void OnChildProfilerData( | 35 void OnChildProfilerData( |
36 int sequence_number, | 36 int sequence_number, |
37 const tracked_objects::ProcessDataSnapshot& profiler_data); | 37 const tracked_objects::ProcessDataSnapshot& profiler_data); |
38 | 38 |
39 #if defined(USE_TCMALLOC) | |
40 void OnTcmallocStats(const std::string& output); | |
41 #endif | |
42 | |
43 content::ProcessType process_type_; | 39 content::ProcessType process_type_; |
44 | 40 |
45 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter); | 41 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter); |
46 }; | 42 }; |
47 | 43 |
48 } // namespace content | 44 } // namespace content |
49 | 45 |
50 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ | 46 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ |
OLD | NEW |