OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ |
6 #define CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ | 6 #define CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 private: | 25 private: |
26 // Message handlers. | 26 // Message handlers. |
27 void OnBeginTracing(const std::vector<std::string>& included_categories, | 27 void OnBeginTracing(const std::vector<std::string>& included_categories, |
28 const std::vector<std::string>& excluded_categories); | 28 const std::vector<std::string>& excluded_categories); |
29 void OnEndTracing(); | 29 void OnEndTracing(); |
30 void OnGetTraceBufferPercentFull(); | 30 void OnGetTraceBufferPercentFull(); |
31 | 31 |
32 // Callback from trace subsystem. | 32 // Callback from trace subsystem. |
33 void OnTraceDataCollected( | 33 void OnTraceDataCollected( |
34 const scoped_refptr<base::debug::TraceLog::RefCountedString>& | 34 const scoped_refptr<base::RefCountedString>& events_str_ptr); |
35 events_str_ptr); | |
36 void OnTraceBufferFull(); | 35 void OnTraceBufferFull(); |
37 | 36 |
38 IPC::Channel* channel_; | 37 IPC::Channel* channel_; |
39 | 38 |
40 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter); | 39 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter); |
41 }; | 40 }; |
42 | 41 |
43 | 42 |
44 #endif // CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ | 43 #endif // CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ |
45 | 44 |
OLD | NEW |