| OLD | NEW |
| 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_FRAME_METRICS_SERVICE_H_ | 8 #ifndef CHROME_FRAME_METRICS_SERVICE_H_ |
| 9 #define CHROME_FRAME_METRICS_SERVICE_H_ | 9 #define CHROME_FRAME_METRICS_SERVICE_H_ |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/metrics/field_trial.h" | |
| 18 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
| 19 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
| 20 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
| 21 #include "base/threading/thread_local.h" | 20 #include "base/threading/thread_local.h" |
| 22 #include "chrome/common/metrics/metrics_service_base.h" | 21 #include "chrome/common/metrics/metrics_service_base.h" |
| 23 | 22 |
| 24 // TODO(ananta) | 23 // TODO(ananta) |
| 25 // Refactor more common code from chrome/browser/metrics/metrics_service.h into | 24 // Refactor more common code from chrome/browser/metrics/metrics_service.h into |
| 26 // the MetricsServiceBase class. | 25 // the MetricsServiceBase class. |
| 27 class MetricsService : public MetricsServiceBase { | 26 class MetricsService : public MetricsServiceBase { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // The transmission timer id returned by SetTimer | 139 // The transmission timer id returned by SetTimer |
| 141 int transmission_timer_id_; | 140 int transmission_timer_id_; |
| 142 | 141 |
| 143 // Used to serialize the Start and Stop operations on the metrics service. | 142 // Used to serialize the Start and Stop operations on the metrics service. |
| 144 static base::Lock metrics_service_lock_; | 143 static base::Lock metrics_service_lock_; |
| 145 | 144 |
| 146 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 145 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
| 147 }; | 146 }; |
| 148 | 147 |
| 149 #endif // CHROME_FRAME_METRICS_SERVICE_H_ | 148 #endif // CHROME_FRAME_METRICS_SERVICE_H_ |
| OLD | NEW |