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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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