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

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

Issue 3149: Porting changes in chrome/{browser,common}, also enabling more unit tests.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_SERVICE_H__ 8 #ifndef CHROME_BROWSER_METRICS_SERVICE_H__
9 #define CHROME_BROWSER_METRICS_SERVICE_H__ 9 #define CHROME_BROWSER_METRICS_SERVICE_H__
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 static void AddOrRemoveObserver(NotificationObserver* observer, 149 static void AddOrRemoveObserver(NotificationObserver* observer,
150 NotificationType type, 150 NotificationType type,
151 bool is_add); 151 bool is_add);
152 152
153 // Deletes pending_log_ and current_log_, and pushes their text into the 153 // Deletes pending_log_ and current_log_, and pushes their text into the
154 // appropriate unsent_log vectors. 154 // appropriate unsent_log vectors.
155 void PushPendingLogsToUnsentLists(); 155 void PushPendingLogsToUnsentLists();
156 156
157 // Save the pending_log_text_ persistently in a pref for transmission when we 157 // Save the pending_log_text_ persistently in a pref for transmission when we
158 // next run. Note that IF this text is "too large," we just dicard it. 158 // next run. Note that IF this text is "too large," we just dicard it.
159 void MetricsService::PushPendingLogTextToUnsentOngoingLogs(); 159 void PushPendingLogTextToUnsentOngoingLogs();
160 160
161 // Start timer for next log transmission. 161 // Start timer for next log transmission.
162 void StartLogTransmissionTimer(); 162 void StartLogTransmissionTimer();
163 // Do not call TryToStartTransmission() directly. 163 // Do not call TryToStartTransmission() directly.
164 // Use StartLogTransmissionTimer() to schedule a call. 164 // Use StartLogTransmissionTimer() to schedule a call.
165 void TryToStartTransmission(); 165 void TryToStartTransmission();
166 // Internal function to collect process memory information. 166 // Internal function to collect process memory information.
167 void CollectMemoryDetails(); 167 void CollectMemoryDetails();
168 // Check to see if there is a log that needs to be, or is being, transmitted. 168 // Check to see if there is a log that needs to be, or is being, transmitted.
169 bool pending_log() const { 169 bool pending_log() const {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 // Indicate that a timer for sending the next log has already been queued, 351 // Indicate that a timer for sending the next log has already been queued,
352 // or that a URLFetch (i.e., log transmission) is in progress. 352 // or that a URLFetch (i.e., log transmission) is in progress.
353 bool timer_pending_; 353 bool timer_pending_;
354 354
355 DISALLOW_EVIL_CONSTRUCTORS(MetricsService); 355 DISALLOW_EVIL_CONSTRUCTORS(MetricsService);
356 }; 356 };
357 357
358 #endif // CHROME_BROWSER_METRICS_SERVICE_H__ 358 #endif // CHROME_BROWSER_METRICS_SERVICE_H__
359 359
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698