| OLD | NEW |
| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 void LogKeywords(const TemplateURLModel* url_model); | 335 void LogKeywords(const TemplateURLModel* url_model); |
| 336 | 336 |
| 337 // Saves plugin-related updates from the in-object buffer to Local State | 337 // Saves plugin-related updates from the in-object buffer to Local State |
| 338 // for retrieval next time we send a Profile log (generally next launch). | 338 // for retrieval next time we send a Profile log (generally next launch). |
| 339 void RecordPluginChanges(PrefService* pref); | 339 void RecordPluginChanges(PrefService* pref); |
| 340 | 340 |
| 341 // Records state that should be periodically saved, like uptime and | 341 // Records state that should be periodically saved, like uptime and |
| 342 // buffered plugin stability statistics. | 342 // buffered plugin stability statistics. |
| 343 void RecordCurrentState(PrefService* pref); | 343 void RecordCurrentState(PrefService* pref); |
| 344 | 344 |
| 345 // Requests all renderers to send their histograms back for |
| 346 // collecting stats from renderers. |
| 347 void CollectRendererHistograms(); |
| 348 |
| 345 // Record complete list of histograms into the current log. | 349 // Record complete list of histograms into the current log. |
| 346 // Called when we close a log. | 350 // Called when we close a log. |
| 347 void RecordCurrentHistograms(); | 351 void RecordCurrentHistograms(); |
| 352 |
| 348 // Record a specific histogram . | 353 // Record a specific histogram . |
| 349 void RecordHistogram(const Histogram& histogram); | 354 void RecordHistogram(const Histogram& histogram); |
| 350 | 355 |
| 351 // Logs the initiation of a page load | 356 // Logs the initiation of a page load |
| 352 void LogLoadStarted(); | 357 void LogLoadStarted(); |
| 353 | 358 |
| 354 // Records a page load notification. | 359 // Records a page load notification. |
| 355 void LogLoadComplete(NotificationType type, | 360 void LogLoadComplete(NotificationType type, |
| 356 const NotificationSource& source, | 361 const NotificationSource& source, |
| 357 const NotificationDetails& details); | 362 const NotificationDetails& details); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 std::set<std::string> histograms_to_upload_; | 467 std::set<std::string> histograms_to_upload_; |
| 463 std::set<std::string> histograms_to_omit_; | 468 std::set<std::string> histograms_to_omit_; |
| 464 | 469 |
| 465 // Indicate that a timer for sending the next log has already been queued. | 470 // Indicate that a timer for sending the next log has already been queued. |
| 466 bool timer_pending_; | 471 bool timer_pending_; |
| 467 | 472 |
| 468 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 473 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
| 469 }; | 474 }; |
| 470 | 475 |
| 471 #endif // CHROME_BROWSER_METRICS_SERVICE_H_ | 476 #endif // CHROME_BROWSER_METRICS_SERVICE_H_ |
| OLD | NEW |