Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: components/feedback/tracing_manager.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/feedback/feedback_util.h ('k') | components/filesystem/file_system_app.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/feedback/feedback_util.h ('k') | components/filesystem/file_system_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698