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

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

Issue 10108026: Transmit a X-Chrome-UMA-Enabled bit to Google domains from clients that have UMA enabled. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: prefmember for metrics enabled Created 8 years, 8 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
OLDNEW
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
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;
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698