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 21 matching lines...) Expand all Loading... |
32 void OnOptInUIClose() override; | 32 void OnOptInUIClose() override; |
33 void OnOptInUIShowPage(arc::ArcAuthService::UIPage page, | 33 void OnOptInUIShowPage(arc::ArcAuthService::UIPage page, |
34 const base::string16& status) override; | 34 const base::string16& status) override; |
35 | 35 |
36 private: | 36 private: |
37 ArcSupportHost(); | 37 ArcSupportHost(); |
38 | 38 |
39 void OnMetricsPreferenceChanged(); | 39 void OnMetricsPreferenceChanged(); |
40 void Initialize(); | 40 void Initialize(); |
41 void SendMetricsMode(); | 41 void SendMetricsMode(); |
42 void EnableMetrics(); | 42 void EnableMetrics(bool is_enabled); |
| 43 void EnableBackupRestore(bool is_enabled); |
43 | 44 |
44 // Unowned pointer. | 45 // Unowned pointer. |
45 Client* client_ = nullptr; | 46 Client* client_ = nullptr; |
46 | 47 |
47 // Used to track metrics preference. | 48 // Used to track metrics preference. |
48 PrefChangeRegistrar pref_change_registrar_; | 49 PrefChangeRegistrar pref_change_registrar_; |
49 | 50 |
50 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); | 51 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); |
51 }; | 52 }; |
52 | 53 |
53 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 54 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
OLD | NEW |