| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/chromeos/arc/arc_auth_service.h" | 9 #include "chrome/browser/chromeos/arc/arc_auth_service.h" |
| 10 #include "components/prefs/pref_change_registrar.h" | 10 #include "components/prefs/pref_change_registrar.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 uint32_t changed_metrics) override; | 42 uint32_t changed_metrics) override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 ArcSupportHost(); | 45 ArcSupportHost(); |
| 46 | 46 |
| 47 bool Initialize(); | 47 bool Initialize(); |
| 48 void OnMetricsPreferenceChanged(); | 48 void OnMetricsPreferenceChanged(); |
| 49 void SendMetricsMode(); | 49 void SendMetricsMode(); |
| 50 void EnableMetrics(bool is_enabled); | 50 void EnableMetrics(bool is_enabled); |
| 51 void EnableBackupRestore(bool is_enabled); | 51 void EnableBackupRestore(bool is_enabled); |
| 52 void EnableLocationService(bool is_enabled); |
| 52 | 53 |
| 53 // Unowned pointer. | 54 // Unowned pointer. |
| 54 Client* client_ = nullptr; | 55 Client* client_ = nullptr; |
| 55 | 56 |
| 56 // Used to track metrics preference. | 57 // Used to track metrics preference. |
| 57 PrefChangeRegistrar pref_change_registrar_; | 58 PrefChangeRegistrar pref_change_registrar_; |
| 58 | 59 |
| 59 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); | 60 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 63 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| OLD | NEW |