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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.h

Issue 296013005: [Metrics] Move Windows-specific CountBrowserCrashDumpAttempts() out of MetricsService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_client.cc » ('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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // user is performing work. This is useful to allow some features to sleep, 57 // user is performing work. This is useful to allow some features to sleep,
58 // until the machine becomes active, such as precluding UMA uploads unless 58 // until the machine becomes active, such as precluding UMA uploads unless
59 // there was recent activity. 59 // there was recent activity.
60 void RegisterForNotifications(); 60 void RegisterForNotifications();
61 61
62 // content::NotificationObserver: 62 // content::NotificationObserver:
63 virtual void Observe(int type, 63 virtual void Observe(int type,
64 const content::NotificationSource& source, 64 const content::NotificationSource& source,
65 const content::NotificationDetails& details) OVERRIDE; 65 const content::NotificationDetails& details) OVERRIDE;
66 66
67 #if defined(OS_WIN)
68 // Counts (and removes) the browser crash dump attempt signals left behind by
69 // any previous browser processes which generated a crash dump.
70 void CountBrowserCrashDumpAttempts();
71 #endif // OS_WIN
72
67 base::ThreadChecker thread_checker_; 73 base::ThreadChecker thread_checker_;
68 74
69 // The MetricsService that |this| is a client of. Weak pointer. 75 // The MetricsService that |this| is a client of. Weak pointer.
70 MetricsService* service_; 76 MetricsService* service_;
71 77
72 content::NotificationRegistrar registrar_; 78 content::NotificationRegistrar registrar_;
73 79
74 NetworkStatsUploader network_stats_uploader_; 80 NetworkStatsUploader network_stats_uploader_;
75 81
76 // Saved callback received from CollectFinalMetrics(). 82 // Saved callback received from CollectFinalMetrics().
77 base::Closure collect_final_metrics_done_callback_; 83 base::Closure collect_final_metrics_done_callback_;
78 84
79 // Indicates that collect final metrics step is running. 85 // Indicates that collect final metrics step is running.
80 bool waiting_for_collect_final_metrics_step_; 86 bool waiting_for_collect_final_metrics_step_;
81 87
82 // Number of async histogram fetch requests in progress. 88 // Number of async histogram fetch requests in progress.
83 int num_async_histogram_fetches_in_progress_; 89 int num_async_histogram_fetches_in_progress_;
84 90
85 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 91 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
86 92
87 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 93 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
88 }; 94 };
89 95
90 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 96 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698