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

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

Issue 8612007: Add OVERRIDE to chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file defines a service that collects information about the user 5 // This file defines a service that collects information about the user
6 // experience in order to help improve future versions of the app. 6 // experience in order to help improve future versions of the app.
7 7
8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
10 #pragma once 10 #pragma once
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Set up notifications which indicate that a user is performing work. This is 80 // Set up notifications which indicate that a user is performing work. This is
81 // useful to allow some features to sleep, until the machine becomes active, 81 // useful to allow some features to sleep, until the machine becomes active,
82 // such as precluding UMA uploads unless there was recent activity. 82 // such as precluding UMA uploads unless there was recent activity.
83 static void SetUpNotifications(content::NotificationRegistrar* registrar, 83 static void SetUpNotifications(content::NotificationRegistrar* registrar,
84 content::NotificationObserver* observer); 84 content::NotificationObserver* observer);
85 85
86 // Implementation of content::NotificationObserver 86 // Implementation of content::NotificationObserver
87 virtual void Observe(int type, 87 virtual void Observe(int type,
88 const content::NotificationSource& source, 88 const content::NotificationSource& source,
89 const content::NotificationDetails& details); 89 const content::NotificationDetails& details) OVERRIDE;
90 90
91 // Invoked when we get a WM_SESSIONEND. This places a value in prefs that is 91 // Invoked when we get a WM_SESSIONEND. This places a value in prefs that is
92 // reset when RecordCompletedSessionEnd is invoked. 92 // reset when RecordCompletedSessionEnd is invoked.
93 void RecordStartOfSessionEnd(); 93 void RecordStartOfSessionEnd();
94 94
95 // This should be called when the application is shutting down. It records 95 // This should be called when the application is shutting down. It records
96 // that session end was successful. 96 // that session end was successful.
97 void RecordCompletedSessionEnd(); 97 void RecordCompletedSessionEnd();
98 98
99 // Saves in the preferences if the crash report registration was successful. 99 // Saves in the preferences if the crash report registration was successful.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Record stats, client ID, Session ID, etc. in a special "first" log. 227 // Record stats, client ID, Session ID, etc. in a special "first" log.
228 void PrepareInitialLog(); 228 void PrepareInitialLog();
229 229
230 // Prepared the staged log to be passed to the server. Upon return, 230 // Prepared the staged log to be passed to the server. Upon return,
231 // current_fetch_ should be reset with its upload data set to a compressed 231 // current_fetch_ should be reset with its upload data set to a compressed
232 // copy of the staged log. 232 // copy of the staged log.
233 void PrepareFetchWithStagedLog(); 233 void PrepareFetchWithStagedLog();
234 234
235 // Implementation of content::URLFetcherDelegate. Called after transmission 235 // Implementation of content::URLFetcherDelegate. Called after transmission
236 // completes (either successfully or with failure). 236 // completes (either successfully or with failure).
237 virtual void OnURLFetchComplete(const content::URLFetcher* source); 237 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE;
238 238
239 // Logs debugging details, for the case where the server returns a response 239 // Logs debugging details, for the case where the server returns a response
240 // code other than 200. 240 // code other than 200.
241 void LogBadResponseCode(); 241 void LogBadResponseCode();
242 242
243 // Records a window-related notification. 243 // Records a window-related notification.
244 void LogWindowChange(int type, 244 void LogWindowChange(int type,
245 const content::NotificationSource& source, 245 const content::NotificationSource& source,
246 const content::NotificationDetails& details); 246 const content::NotificationDetails& details);
247 247
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 friend class InstantFieldTrial; 406 friend class InstantFieldTrial;
407 friend bool prerender::IsOmniboxEnabled(Profile* profile); 407 friend bool prerender::IsOmniboxEnabled(Profile* profile);
408 408
409 // Returns true if prefs::kMetricsReportingEnabled is set. 409 // Returns true if prefs::kMetricsReportingEnabled is set.
410 static bool IsMetricsReportingEnabled(); 410 static bool IsMetricsReportingEnabled();
411 411
412 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 412 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
413 }; 413 };
414 414
415 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 415 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698