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_TRACING_TRACE_CONTROLLER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_ |
6 #define CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_ | 6 #define CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 void AddFilter(TraceMessageFilter* filter); | 75 void AddFilter(TraceMessageFilter* filter); |
76 void RemoveFilter(TraceMessageFilter* filter); | 76 void RemoveFilter(TraceMessageFilter* filter); |
77 void OnTracingBegan(TraceSubscriber* subscriber); | 77 void OnTracingBegan(TraceSubscriber* subscriber); |
78 void OnEndTracingAck(const std::vector<std::string>& known_category_groups); | 78 void OnEndTracingAck(const std::vector<std::string>& known_category_groups); |
79 void OnTraceDataCollected( | 79 void OnTraceDataCollected( |
80 const scoped_refptr<base::RefCountedString>& events_str_ptr); | 80 const scoped_refptr<base::RefCountedString>& events_str_ptr); |
81 void OnTraceNotification(int notification); | 81 void OnTraceNotification(int notification); |
82 void OnTraceBufferPercentFullReply(float percent_full); | 82 void OnTraceBufferPercentFullReply(float percent_full); |
83 | 83 |
| 84 // Callback of TraceLog::Flush() for the local trace. |
| 85 void OnLocalTraceDataCollected( |
| 86 const scoped_refptr<base::RefCountedString>& events_str_ptr, |
| 87 bool has_more_events); |
| 88 |
84 FilterMap filters_; | 89 FilterMap filters_; |
85 TraceSubscriber* subscriber_; | 90 TraceSubscriber* subscriber_; |
86 // Pending acks for EndTracingAsync: | 91 // Pending acks for EndTracingAsync: |
87 int pending_end_ack_count_; | 92 int pending_end_ack_count_; |
88 // Pending acks for GetTraceBufferPercentFullAsync: | 93 // Pending acks for GetTraceBufferPercentFullAsync: |
89 int pending_bpf_ack_count_; | 94 int pending_bpf_ack_count_; |
90 float maximum_bpf_; | 95 float maximum_bpf_; |
91 bool is_tracing_; | 96 bool is_tracing_; |
92 bool is_get_category_groups_; | 97 bool is_get_category_groups_; |
93 std::set<std::string> known_category_groups_; | 98 std::set<std::string> known_category_groups_; |
94 std::string watch_category_; | 99 std::string watch_category_; |
95 std::string watch_name_; | 100 std::string watch_name_; |
96 base::debug::TraceLog::Options trace_options_; | 101 base::debug::TraceLog::Options trace_options_; |
97 base::debug::CategoryFilter category_filter_; | 102 base::debug::CategoryFilter category_filter_; |
98 | 103 |
99 DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl); | 104 DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl); |
100 }; | 105 }; |
101 | 106 |
102 } // namespace content | 107 } // namespace content |
103 | 108 |
104 #endif // CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_ | 109 #endif // CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_ |
OLD | NEW |