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

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

Issue 2441563002: arc: Create intermediate directories in c/b/c/arc (Closed)
Patch Set: Re-rebase to ToT Created 4 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h"
12 #include "base/threading/thread_checker.h"
13 #include "components/arc/arc_service.h"
14 #include "components/arc/common/enterprise_reporting.mojom.h"
15 #include "components/arc/instance_holder.h"
16 #include "mojo/public/cpp/bindings/binding.h"
17
18 namespace arc {
19
20 class ArcBridgeService;
21
22 // This class controls the ARC enterprise reporting.
23 class ArcEnterpriseReportingService
24 : public ArcService,
25 public InstanceHolder<mojom::EnterpriseReportingInstance>::Observer,
26 public mojom::EnterpriseReportingHost {
27 public:
28 explicit ArcEnterpriseReportingService(ArcBridgeService* arc_bridge_service);
29 ~ArcEnterpriseReportingService() override;
30
31 // InstanceHolder<mojom::EnterpriseReportingInstance>::Observer overrides:
32 void OnInstanceReady() override;
33
34 // mojom::EnterpriseReportingHost overrides:
35 void ReportManagementState(mojom::ManagementState state) override;
36
37 private:
38 base::ThreadChecker thread_checker_;
39
40 mojo::Binding<mojom::EnterpriseReportingHost> binding_;
41
42 base::WeakPtrFactory<ArcEnterpriseReportingService> weak_ptr_factory_;
43
44 DISALLOW_COPY_AND_ASSIGN(ArcEnterpriseReportingService);
45 };
46
47 } // namespace arc
48
49 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_ENTERPRISE_REPORTING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698