OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_FEEDBACK_TRACING_MANAGER_H_ | 5 #ifndef COMPONENTS_FEEDBACK_TRACING_MANAGER_H_ |
6 #define COMPONENTS_FEEDBACK_TRACING_MANAGER_H_ | 6 #define COMPONENTS_FEEDBACK_TRACING_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 | 18 |
19 class RefCountedString; | 19 class RefCountedString; |
20 class FilePath; | |
21 | 20 |
22 } | 21 } |
23 // Callback used for getting the output of a trace. | 22 // Callback used for getting the output of a trace. |
24 typedef base::Callback<void(scoped_refptr<base::RefCountedString> trace_data)> | 23 typedef base::Callback<void(scoped_refptr<base::RefCountedString> trace_data)> |
25 TraceDataCallback; | 24 TraceDataCallback; |
26 | 25 |
27 // This class is used to manage performance metrics that can be attached to | 26 // This class is used to manage performance metrics that can be attached to |
28 // feedback reports. This class is a Singleton that is owned by the preference | 27 // feedback reports. This class is a Singleton that is owned by the preference |
29 // system. It should only be created when it is enabled, and should only be | 28 // system. It should only be created when it is enabled, and should only be |
30 // accessed elsewhere via Get(). | 29 // accessed elsewhere via Get(). |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Callback for the current trace request. | 71 // Callback for the current trace request. |
73 TraceDataCallback trace_callback_; | 72 TraceDataCallback trace_callback_; |
74 | 73 |
75 base::WeakPtrFactory<TracingManager> weak_ptr_factory_; | 74 base::WeakPtrFactory<TracingManager> weak_ptr_factory_; |
76 | 75 |
77 DISALLOW_COPY_AND_ASSIGN(TracingManager); | 76 DISALLOW_COPY_AND_ASSIGN(TracingManager); |
78 }; | 77 }; |
79 | 78 |
80 #endif // COMPONENTS_FEEDBACK_TRACING_MANAGER_H_ | 79 #endif // COMPONENTS_FEEDBACK_TRACING_MANAGER_H_ |
81 | 80 |
OLD | NEW |