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

Unified Diff: components/arc/policy/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: Remove functionality for OnPolicyChanged due to dependency issues 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 side-by-side diff with in-line comments
Download patch
Index: components/arc/policy/arc_policy_bridge.h
diff --git a/components/arc/policy/arc_policy_bridge.h b/components/arc/policy/arc_policy_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce56e26d1643fc7baae633033ec501fbb0185554
--- /dev/null
+++ b/components/arc/policy/arc_policy_bridge.h
@@ -0,0 +1,35 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_ARC_POLICY_ARC_POLICY_BRIDGE_H_
+#define COMPONENTS_ARC_POLICY_ARC_POLICY_BRIDGE_H_
+
+#include "components/arc/arc_bridge_service.h"
+#include "components/arc/arc_service.h"
+#include "mojo/public/cpp/bindings/binding.h"
+
+namespace arc {
+class ArcPolicyBridge : public ArcService,
Thiemo Nagel 2016/03/15 16:49:23 Please insert blank line after namespace opening b
phweiss 2016/03/15 17:38:23 Done.
+ public ArcBridgeService::Observer,
+ public PolicyHost {
+ public:
+ explicit ArcPolicyBridge(ArcBridgeService* bridge_service);
+ ~ArcPolicyBridge() override;
+
+ // ArcBridgeService::Observer overrides.
+ void OnPolicyInstanceReady() override;
+ void OnPolicyInstanceClosed() override;
+
+ // PolicyHost overrides.
+ void GetPolicy(const GetPolicyCallback& callback) override;
+
+ private:
+ mojo::Binding<PolicyHost> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcPolicyBridge);
+};
+
+} // namespace arc
+
+#endif // COMPONENTS_ARC_POLICY_ARC_POLICY_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698