| 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 17 matching lines...) Expand all Loading... |
| 28 // content::BrowserMessageFilter implementation. | 28 // content::BrowserMessageFilter implementation. |
| 29 virtual bool OnMessageReceived(const IPC::Message& message, | 29 virtual bool OnMessageReceived(const IPC::Message& message, |
| 30 bool* message_was_ok) OVERRIDE; | 30 bool* message_was_ok) OVERRIDE; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 // Message handlers. | 33 // Message handlers. |
| 34 void OnChildProfilerData( | 34 void OnChildProfilerData( |
| 35 int sequence_number, | 35 int sequence_number, |
| 36 const tracked_objects::ProcessDataSnapshot& profiler_data); | 36 const tracked_objects::ProcessDataSnapshot& profiler_data); |
| 37 | 37 |
| 38 #if defined(USE_TCMALLOC) |
| 39 void OnTcmallocStats(const std::string& output); |
| 40 #endif |
| 41 |
| 38 ProcessType process_type_; | 42 ProcessType process_type_; |
| 39 | 43 |
| 40 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter); | 44 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter); |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 } // namespace content | 47 } // namespace content |
| 44 | 48 |
| 45 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ | 49 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ |
| OLD | NEW |