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 #pragma once | 10 #pragma once |
(...skipping 14 matching lines...) Expand all Loading... | |
25 #include "content/public/common/url_fetcher_delegate.h" | 25 #include "content/public/common/url_fetcher_delegate.h" |
26 #include "content/public/browser/notification_observer.h" | 26 #include "content/public/browser/notification_observer.h" |
27 #include "content/public/browser/notification_registrar.h" | 27 #include "content/public/browser/notification_registrar.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 ChromeNetworkDelegate; | |
battre
2012/04/23 10:49:55
nit: not necessary
SteveT
2012/04/27 00:05:07
Removed.
| |
35 class MetricsReportingScheduler; | 36 class MetricsReportingScheduler; |
36 class PrefService; | 37 class PrefService; |
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 |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
430 }; | 431 }; |
431 | 432 |
432 // This class limits and documents access to the IsMetricsReportingEnabled() | 433 // This class limits and documents access to the IsMetricsReportingEnabled() |
433 // method. Since the method is private, each user has to be explicitly declared | 434 // method. Since the method is private, each user has to be explicitly declared |
434 // as a 'friend' below. | 435 // as a 'friend' below. |
435 class MetricsServiceHelper { | 436 class MetricsServiceHelper { |
436 private: | 437 private: |
437 friend class InstantFieldTrial; | 438 friend class InstantFieldTrial; |
438 friend bool prerender::IsOmniboxEnabled(Profile* profile); | 439 friend bool prerender::IsOmniboxEnabled(Profile* profile); |
439 friend class extensions::ExtensionDownloader; | 440 friend class extensions::ExtensionDownloader; |
441 friend class ChromeNetworkDelegate; | |
440 | 442 |
441 // Returns true if prefs::kMetricsReportingEnabled is set. | 443 // Returns true if prefs::kMetricsReportingEnabled is set. |
442 static bool IsMetricsReportingEnabled(); | 444 static bool IsMetricsReportingEnabled(); |
443 | 445 |
444 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 446 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |
445 }; | 447 }; |
446 | 448 |
447 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 449 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |