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

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

Issue 1754803003: Implement Stub for policy bridge to ARC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ordering and ordinal numbers in .mojom files, nits adressed Created 4 years, 9 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
(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_POLICY_BRIDGE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_POLICY_BRIDGE_H_
7
8 #include "components/arc/arc_bridge_service.h"
9 #include "components/arc/arc_service.h"
10 #include "components/policy/core/common/policy_service.h"
11 #include "mojo/public/cpp/bindings/binding.h"
12
13 namespace arc {
14
15 class ArcPolicyBridge : public ArcService,
16 public ArcBridgeService::Observer,
17 public PolicyHost,
18 public policy::PolicyService::Observer {
19 public:
20 explicit ArcPolicyBridge(ArcBridgeService* bridge_service);
21 ~ArcPolicyBridge() override;
22
23 // ArcBridgeService::Observer overrides.
24 void OnPolicyInstanceReady() override;
25 void OnPolicyInstanceClosed() override;
26
27 // PolicyHost overrides.
28 void GetPolicies(const GetPoliciesCallback& callback) override;
29
30 // PolicyService::Observer overrides.
31 void OnPolicyUpdated(const policy::PolicyNamespace& ns,
32 const policy::PolicyMap& previous,
33 const policy::PolicyMap& current) override;
34
35 private:
36 mojo::Binding<PolicyHost> binding_;
37 policy::PolicyService* policy_service_ = nullptr;
38
39 DISALLOW_COPY_AND_ASSIGN(ArcPolicyBridge);
40 };
41
42 } // namespace arc
43
44 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_POLICY_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.cc ('k') | chrome/browser/chromeos/arc/arc_policy_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698