| 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 | |
| 39 base::ThreadChecker thread_checker_; | 36 base::ThreadChecker thread_checker_; |
| 40 | 37 |
| 41 mojo::Binding<mojom::EnterpriseReportingHost> binding_; | 38 mojo::Binding<mojom::EnterpriseReportingHost> binding_; |
| 42 | 39 |
| 43 base::WeakPtrFactory<ArcEnterpriseReportingService> weak_ptr_factory_; | 40 base::WeakPtrFactory<ArcEnterpriseReportingService> weak_ptr_factory_; |
| 44 | 41 |
| 45 DISALLOW_COPY_AND_ASSIGN(ArcEnterpriseReportingService); | 42 DISALLOW_COPY_AND_ASSIGN(ArcEnterpriseReportingService); |
| 46 }; | 43 }; |
| 47 | 44 |
| 48 } // namespace arc | 45 } // namespace arc |
| 49 | 46 |
| 50 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_ | 47 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_ |
| OLD | NEW |