| 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_ENTERPRISE_REPORTING_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 explicit ArcEnterpriseReportingService(ArcBridgeService* arc_bridge_service); | 26 explicit ArcEnterpriseReportingService(ArcBridgeService* arc_bridge_service); |
| 27 ~ArcEnterpriseReportingService() override; | 27 ~ArcEnterpriseReportingService() override; |
| 28 | 28 |
| 29 // InstanceHolder<mojom::EnterpriseReportingInstance>::Observer overrides: | 29 // InstanceHolder<mojom::EnterpriseReportingInstance>::Observer overrides: |
| 30 void OnInstanceReady() override; | 30 void OnInstanceReady() override; |
| 31 | 31 |
| 32 // mojom::EnterpriseReportingHost overrides: | 32 // mojom::EnterpriseReportingHost overrides: |
| 33 void ReportManagementState(mojom::ManagementState state) override; | 33 void ReportManagementState(mojom::ManagementState state) override; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 // DBus callback, restarts ARC after ARC user data wipe. |
| 37 void RestartArc(bool success); |
| 38 |
| 36 base::ThreadChecker thread_checker_; | 39 base::ThreadChecker thread_checker_; |
| 37 | 40 |
| 38 mojo::Binding<mojom::EnterpriseReportingHost> binding_; | 41 mojo::Binding<mojom::EnterpriseReportingHost> binding_; |
| 39 | 42 |
| 40 base::WeakPtrFactory<ArcEnterpriseReportingService> weak_ptr_factory_; | 43 base::WeakPtrFactory<ArcEnterpriseReportingService> weak_ptr_factory_; |
| 41 | 44 |
| 42 DISALLOW_COPY_AND_ASSIGN(ArcEnterpriseReportingService); | 45 DISALLOW_COPY_AND_ASSIGN(ArcEnterpriseReportingService); |
| 43 }; | 46 }; |
| 44 | 47 |
| 45 } // namespace arc | 48 } // namespace arc |
| 46 | 49 |
| 47 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_ | 50 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_ |
| OLD | NEW |