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

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

Issue 27034: Initial support for Renderer Side Histograms... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/metrics/metrics_service.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 (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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698