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_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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 protected: | 24 protected: |
25 virtual ~ChildTraceMessageFilter(); | 25 virtual ~ChildTraceMessageFilter(); |
26 | 26 |
27 private: | 27 private: |
28 // Message handlers. | 28 // Message handlers. |
29 void OnBeginTracing(const std::vector<std::string>& included_categories, | 29 void OnBeginTracing(const std::vector<std::string>& included_categories, |
30 const std::vector<std::string>& excluded_categories); | 30 const std::vector<std::string>& excluded_categories); |
31 void OnEndTracing(); | 31 void OnEndTracing(); |
32 void OnGetTraceBufferPercentFull(); | 32 void OnGetTraceBufferPercentFull(); |
| 33 void OnSetWatchEvent(const std::string& category_name, |
| 34 const std::string& event_name); |
| 35 void OnCancelWatchEvent(); |
33 | 36 |
34 // Callback from trace subsystem. | 37 // Callback from trace subsystem. |
35 void OnTraceDataCollected( | 38 void OnTraceDataCollected( |
36 const scoped_refptr<base::RefCountedString>& events_str_ptr); | 39 const scoped_refptr<base::RefCountedString>& events_str_ptr); |
37 void OnTraceBufferFull(); | 40 void OnTraceNotification(int notification); |
38 | 41 |
39 IPC::Channel* channel_; | 42 IPC::Channel* channel_; |
40 | 43 |
41 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter); | 44 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter); |
42 }; | 45 }; |
43 | 46 |
44 | 47 |
45 #endif // CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ | 48 #endif // CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ |
46 | 49 |
OLD | NEW |