OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ |
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ | 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // MetricsStateManager which is passed as a parameter to service constructors. | 42 // MetricsStateManager which is passed as a parameter to service constructors. |
43 scoped_ptr<metrics::MetricsStateManager> metrics_state_manager_; | 43 scoped_ptr<metrics::MetricsStateManager> metrics_state_manager_; |
44 | 44 |
45 // Ensures that all functions are called from the same thread. | 45 // Ensures that all functions are called from the same thread. |
46 base::ThreadChecker thread_checker_; | 46 base::ThreadChecker thread_checker_; |
47 | 47 |
48 // Weak pointer to the local state prefs store. | 48 // Weak pointer to the local state prefs store. |
49 PrefService* local_state_; | 49 PrefService* local_state_; |
50 | 50 |
51 // Subscription to SafeBrowsing service state changes. | 51 // Subscription to SafeBrowsing service state changes. |
52 scoped_ptr<SafeBrowsingService::StateSubscription> sb_state_subscription_; | 52 scoped_ptr<safe_browsing::SafeBrowsingService::StateSubscription> |
| 53 sb_state_subscription_; |
53 | 54 |
54 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServicesManagerClient); | 55 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServicesManagerClient); |
55 }; | 56 }; |
56 | 57 |
57 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ | 58 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ |
OLD | NEW |