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

Unified Diff: components/browser_watcher/watcher_metrics_provider_win.h

Issue 742523002: Browser watcher part three. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@watcher_client
Patch Set: Work around wonky RegKey API. Created 6 years, 1 month 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/browser_watcher/DEPS ('k') | components/browser_watcher/watcher_metrics_provider_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_watcher/watcher_metrics_provider_win.h
diff --git a/components/browser_watcher/watcher_metrics_provider_win.h b/components/browser_watcher/watcher_metrics_provider_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..d5a03e434c2ae6f7bb3abd5bc8fae125c5a1d52c
--- /dev/null
+++ b/components/browser_watcher/watcher_metrics_provider_win.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_BROWSER_WATCHER_WATCHER_METRICS_PROVIDER_WIN_H_
+#define COMPONENTS_BROWSER_WATCHER_WATCHER_METRICS_PROVIDER_WIN_H_
+
+#include "base/macros.h"
+#include "base/strings/string16.h"
+#include "components/metrics/metrics_provider.h"
+
+namespace browser_watcher {
+
+// Provides stability data captured by the Chrome Watcher, namely the browser
+// process exit codes.
+class WatcherMetricsProviderWin : public metrics::MetricsProvider {
+ public:
+ static const char kBrowserExitCodeHistogramName[];
+
+ explicit WatcherMetricsProviderWin(const base::char16* registry_path);
+ ~WatcherMetricsProviderWin();
+
+ // metrics::MetricsProvider implementation.
+ virtual void ProvideStabilityMetrics(
+ metrics::SystemProfileProto* system_profile_proto) override;
+
+ private:
+ base::string16 registry_path_;
+
+ DISALLOW_COPY_AND_ASSIGN(WatcherMetricsProviderWin);
+};
+
+} // namespace browser_watcher
+
+#endif // COMPONENTS_BROWSER_WATCHER_WATCHER_METRICS_PROVIDER_WIN_H_
« no previous file with comments | « components/browser_watcher/DEPS ('k') | components/browser_watcher/watcher_metrics_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698