| 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_BROWSER_METRICS_METRICS_SERVICE_H_ | 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
| 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "net/url_request/url_fetcher_delegate.h" | 27 #include "net/url_request/url_fetcher_delegate.h" |
| 28 | 28 |
| 29 #if defined(OS_CHROMEOS) | 29 #if defined(OS_CHROMEOS) |
| 30 #include "chrome/browser/chromeos/external_metrics.h" | 30 #include "chrome/browser/chromeos/external_metrics.h" |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 class BookmarkModel; | 33 class BookmarkModel; |
| 34 class BookmarkNode; | 34 class BookmarkNode; |
| 35 class MetricsReportingScheduler; | 35 class MetricsReportingScheduler; |
| 36 class PrefService; | 36 class PrefService; |
| 37 class PrefServiceSimple; |
| 37 class Profile; | 38 class Profile; |
| 38 class TemplateURLService; | 39 class TemplateURLService; |
| 39 | 40 |
| 40 namespace base { | 41 namespace base { |
| 41 class DictionaryValue; | 42 class DictionaryValue; |
| 42 class MessageLoopProxy; | 43 class MessageLoopProxy; |
| 43 } | 44 } |
| 44 | 45 |
| 45 namespace content { | 46 namespace content { |
| 46 class RenderProcessHost; | 47 class RenderProcessHost; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // to be started. | 117 // to be started. |
| 117 scoped_ptr<const base::FieldTrial::EntropyProvider> CreateEntropyProvider( | 118 scoped_ptr<const base::FieldTrial::EntropyProvider> CreateEntropyProvider( |
| 118 bool reporting_will_be_enabled); | 119 bool reporting_will_be_enabled); |
| 119 | 120 |
| 120 // Force the client ID to be generated. This is useful in case it's needed | 121 // Force the client ID to be generated. This is useful in case it's needed |
| 121 // before recording. | 122 // before recording. |
| 122 void ForceClientIdCreation(); | 123 void ForceClientIdCreation(); |
| 123 | 124 |
| 124 // At startup, prefs needs to be called with a list of all the pref names and | 125 // At startup, prefs needs to be called with a list of all the pref names and |
| 125 // types we'll be using. | 126 // types we'll be using. |
| 126 static void RegisterPrefs(PrefService* local_state); | 127 static void RegisterPrefs(PrefServiceSimple* local_state); |
| 127 | 128 |
| 128 // Set up notifications which indicate that a user is performing work. This is | 129 // Set up notifications which indicate that a user is performing work. This is |
| 129 // useful to allow some features to sleep, until the machine becomes active, | 130 // useful to allow some features to sleep, until the machine becomes active, |
| 130 // such as precluding UMA uploads unless there was recent activity. | 131 // such as precluding UMA uploads unless there was recent activity. |
| 131 static void SetUpNotifications(content::NotificationRegistrar* registrar, | 132 static void SetUpNotifications(content::NotificationRegistrar* registrar, |
| 132 content::NotificationObserver* observer); | 133 content::NotificationObserver* observer); |
| 133 | 134 |
| 134 // Implementation of content::NotificationObserver | 135 // Implementation of content::NotificationObserver |
| 135 virtual void Observe(int type, | 136 virtual void Observe(int type, |
| 136 const content::NotificationSource& source, | 137 const content::NotificationSource& source, |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 friend class extensions::ExtensionDownloader; | 528 friend class extensions::ExtensionDownloader; |
| 528 friend class extensions::ManifestFetchData; | 529 friend class extensions::ManifestFetchData; |
| 529 | 530 |
| 530 // Returns true if prefs::kMetricsReportingEnabled is set. | 531 // Returns true if prefs::kMetricsReportingEnabled is set. |
| 531 static bool IsMetricsReportingEnabled(); | 532 static bool IsMetricsReportingEnabled(); |
| 532 | 533 |
| 533 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 534 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |
| 534 }; | 535 }; |
| 535 | 536 |
| 536 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 537 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
| OLD | NEW |