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

Unified Diff: components/metrics/profiler/profiler_metrics_provider.h

Issue 577823002: Moves ProfilerMetricsProvider to //components/metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaase Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/metrics/profiler/DEPS ('k') | components/metrics/profiler/profiler_metrics_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/profiler/profiler_metrics_provider.h
diff --git a/chrome/browser/metrics/profiler_metrics_provider.h b/components/metrics/profiler/profiler_metrics_provider.h
similarity index 73%
rename from chrome/browser/metrics/profiler_metrics_provider.h
rename to components/metrics/profiler/profiler_metrics_provider.h
index 680156bf8472038a94f68ec4a9fc7510e7ab2828..f9e7e48452672d20de174b76d8536ac672959265 100644
--- a/chrome/browser/metrics/profiler_metrics_provider.h
+++ b/components/metrics/profiler/profiler_metrics_provider.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_METRICS_PROFILER_METRICS_PROVIDER_H_
-#define CHROME_BROWSER_METRICS_PROFILER_METRICS_PROVIDER_H_
+#ifndef COMPONENTS_METRICS_PROFILER_PROFILER_METRICS_PROVIDER_H_
+#define COMPONENTS_METRICS_PROFILER_PROFILER_METRICS_PROVIDER_H_
#include "base/basictypes.h"
#include "components/metrics/metrics_provider.h"
@@ -13,16 +13,18 @@ namespace tracked_objects {
struct ProcessDataSnapshot;
}
+namespace metrics {
+
// ProfilerMetricsProvider is responsible for filling out the |profiler_event|
// section of the UMA proto.
-class ProfilerMetricsProvider : public metrics::MetricsProvider {
+class ProfilerMetricsProvider : public MetricsProvider {
public:
ProfilerMetricsProvider();
virtual ~ProfilerMetricsProvider();
- // metrics::MetricsDataProvider:
+ // MetricsDataProvider:
virtual void ProvideGeneralMetrics(
- metrics::ChromeUserMetricsExtension* uma_proto) OVERRIDE;
+ ChromeUserMetricsExtension* uma_proto) OVERRIDE;
// Records the passed profiled data, which should be a snapshot of the
// browser's profiled performance during startup for a single process.
@@ -33,7 +35,7 @@ class ProfilerMetricsProvider : public metrics::MetricsProvider {
private:
// Saved cache of generated Profiler event protos, to be copied into the UMA
// proto when ProvideGeneralMetrics() is called.
- metrics::ProfilerEventProto profiler_event_cache_;
+ ProfilerEventProto profiler_event_cache_;
// True if this instance has recorded profiler data since the last call to
// ProvideGeneralMetrics().
@@ -42,4 +44,6 @@ class ProfilerMetricsProvider : public metrics::MetricsProvider {
DISALLOW_COPY_AND_ASSIGN(ProfilerMetricsProvider);
};
-#endif // CHROME_BROWSER_METRICS_PROFILER_METRICS_PROVIDER_H_
+} // namespace metrics
+
+#endif // COMPONENTS_METRICS_PROFILER_PROFILER_METRICS_PROVIDER_H_
« no previous file with comments | « components/metrics/profiler/DEPS ('k') | components/metrics/profiler/profiler_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698