Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Side by Side Diff: chrome/browser/chromeos/arc/arc_enterprise_reporting_service.h

Issue 2248353002: [M53 cherry-pick] Migrate ArcUserDataService into ArcAuthService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698