OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_BROWSER_WATCHER_WATCHER_METRICS_PROVIDER_WIN_H_ |
| 6 #define COMPONENTS_BROWSER_WATCHER_WATCHER_METRICS_PROVIDER_WIN_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" |
| 10 #include "components/metrics/metrics_provider.h" |
| 11 |
| 12 namespace browser_watcher { |
| 13 |
| 14 // Provides stability data captured by the Chrome Watcher, namely the browser |
| 15 // process exit codes. |
| 16 class WatcherMetricsProviderWin : public metrics::MetricsProvider { |
| 17 public: |
| 18 static const char kBrowserExitCodeHistogramName[]; |
| 19 |
| 20 explicit WatcherMetricsProviderWin(const base::char16* registry_path); |
| 21 ~WatcherMetricsProviderWin(); |
| 22 |
| 23 // metrics::MetricsProvider implementation. |
| 24 virtual void ProvideStabilityMetrics( |
| 25 metrics::SystemProfileProto* system_profile_proto) override; |
| 26 |
| 27 private: |
| 28 base::string16 registry_path_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(WatcherMetricsProviderWin); |
| 31 }; |
| 32 |
| 33 } // namespace browser_watcher |
| 34 |
| 35 #endif // COMPONENTS_BROWSER_WATCHER_WATCHER_METRICS_PROVIDER_WIN_H_ |
OLD | NEW |