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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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) 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 scoped_ptr<DictionaryValue> profile_dictionary_; 432 scoped_ptr<DictionaryValue> profile_dictionary_;
433 433
434 // For histograms, record what we've already logged (as a sample for each 434 // For histograms, record what we've already logged (as a sample for each
435 // histogram) so that we can send only the delta with the next log. 435 // histogram) so that we can send only the delta with the next log.
436 MetricsService::LoggedSampleMap logged_samples_; 436 MetricsService::LoggedSampleMap logged_samples_;
437 437
438 // The interval between consecutive log transmissions (to avoid hogging the 438 // The interval between consecutive log transmissions (to avoid hogging the
439 // outbound network link). This is usually also the duration for which we 439 // outbound network link). This is usually also the duration for which we
440 // build up a log, but if other unsent-logs from previous sessions exist, we 440 // build up a log, but if other unsent-logs from previous sessions exist, we
441 // quickly transmit those unsent logs while we continue to build a log. 441 // quickly transmit those unsent logs while we continue to build a log.
442 TimeDelta interlog_duration_; 442 base::TimeDelta interlog_duration_;
443 443
444 // The maximum number of events which get transmitted in a log. This defaults 444 // The maximum number of events which get transmitted in a log. This defaults
445 // to a constant and otherwise is provided by the UMA server in the server 445 // to a constant and otherwise is provided by the UMA server in the server
446 // response data. 446 // response data.
447 int log_event_limit_; 447 int log_event_limit_;
448 448
449 // The types of data that are to be included in the logs and histograms 449 // The types of data that are to be included in the logs and histograms
450 // according to the UMA response data. 450 // according to the UMA response data.
451 std::set<std::string> logs_to_upload_; 451 std::set<std::string> logs_to_upload_;
452 std::set<std::string> logs_to_omit_; 452 std::set<std::string> logs_to_omit_;
453 std::set<std::string> histograms_to_upload_; 453 std::set<std::string> histograms_to_upload_;
454 std::set<std::string> histograms_to_omit_; 454 std::set<std::string> histograms_to_omit_;
455 455
456 // Indicate that a timer for sending the next log has already been queued. 456 // Indicate that a timer for sending the next log has already been queued.
457 bool timer_pending_; 457 bool timer_pending_;
458 458
459 DISALLOW_EVIL_CONSTRUCTORS(MetricsService); 459 DISALLOW_EVIL_CONSTRUCTORS(MetricsService);
460 }; 460 };
461 461
462 #endif // CHROME_BROWSER_METRICS_SERVICE_H__ 462 #endif // CHROME_BROWSER_METRICS_SERVICE_H__
463 463
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698