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

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

Issue 287193005: [Metrics] Move non-idle notifications from MetricsService to ChromeMetricsServiceClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: break! 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 virtual void BrowserChildProcessCrashed( 204 virtual void BrowserChildProcessCrashed(
205 const content::ChildProcessData& data) OVERRIDE; 205 const content::ChildProcessData& data) OVERRIDE;
206 virtual void BrowserChildProcessInstanceCreated( 206 virtual void BrowserChildProcessInstanceCreated(
207 const content::ChildProcessData& data) OVERRIDE; 207 const content::ChildProcessData& data) OVERRIDE;
208 208
209 // Implementation of content::NotificationObserver 209 // Implementation of content::NotificationObserver
210 virtual void Observe(int type, 210 virtual void Observe(int type,
211 const content::NotificationSource& source, 211 const content::NotificationSource& source,
212 const content::NotificationDetails& details) OVERRIDE; 212 const content::NotificationDetails& details) OVERRIDE;
213 213
214 // This should be called when the application is not idle, i.e. the user seems
215 // to be interacting with the application.
216 void OnApplicationNotIdle();
217
214 // Invoked when we get a WM_SESSIONEND. This places a value in prefs that is 218 // Invoked when we get a WM_SESSIONEND. This places a value in prefs that is
215 // reset when RecordCompletedSessionEnd is invoked. 219 // reset when RecordCompletedSessionEnd is invoked.
216 void RecordStartOfSessionEnd(); 220 void RecordStartOfSessionEnd();
217 221
218 // This should be called when the application is shutting down. It records 222 // This should be called when the application is shutting down. It records
219 // that session end was successful. 223 // that session end was successful.
220 void RecordCompletedSessionEnd(); 224 void RecordCompletedSessionEnd();
221 225
222 #if defined(OS_ANDROID) 226 #if defined(OS_ANDROID)
223 // Called to log launch and crash stats to preferences. 227 // Called to log launch and crash stats to preferences.
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 651
648 // Registers/unregisters |observer| to receive MetricsLog notifications 652 // Registers/unregisters |observer| to receive MetricsLog notifications
649 // from metrics service. 653 // from metrics service.
650 static void AddMetricsServiceObserver(MetricsServiceObserver* observer); 654 static void AddMetricsServiceObserver(MetricsServiceObserver* observer);
651 static void RemoveMetricsServiceObserver(MetricsServiceObserver* observer); 655 static void RemoveMetricsServiceObserver(MetricsServiceObserver* observer);
652 656
653 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 657 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
654 }; 658 };
655 659
656 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 660 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698