| 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_PUBLIC_BROWSER_TRACE_SUBSCRIBER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_TRACE_SUBSCRIBER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_TRACE_SUBSCRIBER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_TRACE_SUBSCRIBER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // more trace fragments to JSON. | 24 // more trace fragments to JSON. |
| 25 virtual void OnTraceDataCollected( | 25 virtual void OnTraceDataCollected( |
| 26 const scoped_refptr<base::RefCountedString>& trace_fragment) = 0; | 26 const scoped_refptr<base::RefCountedString>& trace_fragment) = 0; |
| 27 | 27 |
| 28 // Called once after TraceController::GetKnownCategoriesAsync. | 28 // Called once after TraceController::GetKnownCategoriesAsync. |
| 29 virtual void OnKnownCategoriesCollected( | 29 virtual void OnKnownCategoriesCollected( |
| 30 const std::set<std::string>& known_categories) {} | 30 const std::set<std::string>& known_categories) {} |
| 31 | 31 |
| 32 virtual void OnTraceBufferPercentFullReply(float percent_full) {} | 32 virtual void OnTraceBufferPercentFullReply(float percent_full) {} |
| 33 | 33 |
| 34 virtual void OnEventWatchNotification() {} |
| 35 |
| 34 protected: | 36 protected: |
| 35 virtual ~TraceSubscriber() {} | 37 virtual ~TraceSubscriber() {} |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 } // namespace content | 40 } // namespace content |
| 39 | 41 |
| 40 #endif // CONTENT_PUBLIC_BROWSER_TRACE_SUBSCRIBER_H_ | 42 #endif // CONTENT_PUBLIC_BROWSER_TRACE_SUBSCRIBER_H_ |
| OLD | NEW |