| 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_POLICY_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_POLICY_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_POLICY_BRIDGE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_POLICY_BRIDGE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/arc/arc_bridge_service.h" | 9 #include "components/arc/arc_bridge_service.h" |
| 10 #include "components/arc/arc_service.h" | 10 #include "components/arc/arc_service.h" |
| 11 #include "components/policy/core/common/policy_service.h" | 11 #include "components/policy/core/common/policy_service.h" |
| 12 #include "mojo/public/cpp/bindings/binding.h" | 12 #include "mojo/public/cpp/bindings/binding.h" |
| 13 | 13 |
| 14 namespace policy { | 14 namespace policy { |
| 15 class PolicyMap; | 15 class PolicyMap; |
| 16 } // namespace policy | 16 } // namespace policy |
| 17 | 17 |
| 18 namespace arc { | 18 namespace arc { |
| 19 | 19 |
| 20 class ArcPolicyBridge : public ArcService, | 20 class ArcPolicyBridge : public ArcService, |
| 21 public ArcBridgeService::Observer, | 21 public ArcBridgeService::Observer, |
| 22 public PolicyHost, | 22 public mojom::PolicyHost, |
| 23 public policy::PolicyService::Observer { | 23 public policy::PolicyService::Observer { |
| 24 public: | 24 public: |
| 25 explicit ArcPolicyBridge(ArcBridgeService* bridge_service); | 25 explicit ArcPolicyBridge(ArcBridgeService* bridge_service); |
| 26 ArcPolicyBridge(ArcBridgeService* bridge_service, | 26 ArcPolicyBridge(ArcBridgeService* bridge_service, |
| 27 policy::PolicyService* policy_service); | 27 policy::PolicyService* policy_service); |
| 28 ~ArcPolicyBridge() override; | 28 ~ArcPolicyBridge() override; |
| 29 | 29 |
| 30 // ArcBridgeService::Observer overrides. | 30 // ArcBridgeService::Observer overrides. |
| 31 void OnPolicyInstanceReady() override; | 31 void OnPolicyInstanceReady() override; |
| 32 void OnPolicyInstanceClosed() override; | 32 void OnPolicyInstanceClosed() override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 mojo::Binding<PolicyHost> binding_; | 45 mojo::Binding<PolicyHost> binding_; |
| 46 policy::PolicyService* policy_service_ = nullptr; | 46 policy::PolicyService* policy_service_ = nullptr; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(ArcPolicyBridge); | 48 DISALLOW_COPY_AND_ASSIGN(ArcPolicyBridge); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace arc | 51 } // namespace arc |
| 52 | 52 |
| 53 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_POLICY_BRIDGE_H_ | 53 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_POLICY_BRIDGE_H_ |
| OLD | NEW |