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

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

Issue 2495913002: arc: Convert more Mojo types to STL (Closed)
Patch Set: Rebased 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/policy/arc_policy_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_POLICY_ARC_POLICY_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_POLICY_ARC_POLICY_BRIDGE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_POLICY_ARC_POLICY_BRIDGE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_POLICY_ARC_POLICY_BRIDGE_H_
7 7
8 #include <string>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "components/arc/arc_service.h" 11 #include "components/arc/arc_service.h"
10 #include "components/arc/common/policy.mojom.h" 12 #include "components/arc/common/policy.mojom.h"
11 #include "components/arc/instance_holder.h" 13 #include "components/arc/instance_holder.h"
12 #include "components/policy/core/common/policy_service.h" 14 #include "components/policy/core/common/policy_service.h"
13 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
14 16
15 namespace policy { 17 namespace policy {
16 class PolicyMap; 18 class PolicyMap;
17 } // namespace policy 19 } // namespace policy
(...skipping 22 matching lines...) Expand all
40 ~ArcPolicyBridge() override; 42 ~ArcPolicyBridge() override;
41 43
42 void OverrideIsManagedForTesting(bool is_managed); 44 void OverrideIsManagedForTesting(bool is_managed);
43 45
44 // InstanceHolder<mojom::PolicyInstance>::Observer overrides. 46 // InstanceHolder<mojom::PolicyInstance>::Observer overrides.
45 void OnInstanceReady() override; 47 void OnInstanceReady() override;
46 void OnInstanceClosed() override; 48 void OnInstanceClosed() override;
47 49
48 // PolicyHost overrides. 50 // PolicyHost overrides.
49 void GetPolicies(const GetPoliciesCallback& callback) override; 51 void GetPolicies(const GetPoliciesCallback& callback) override;
50 void ReportCompliance(const mojo::String& request, 52 void ReportCompliance(const std::string& request,
51 const ReportComplianceCallback& callback) override; 53 const ReportComplianceCallback& callback) override;
52 54
53 // PolicyService::Observer overrides. 55 // PolicyService::Observer overrides.
54 void OnPolicyUpdated(const policy::PolicyNamespace& ns, 56 void OnPolicyUpdated(const policy::PolicyNamespace& ns,
55 const policy::PolicyMap& previous, 57 const policy::PolicyMap& previous,
56 const policy::PolicyMap& current) override; 58 const policy::PolicyMap& current) override;
57 59
58 private: 60 private:
59 void InitializePolicyService(); 61 void InitializePolicyService();
60 62
61 mojo::Binding<PolicyHost> binding_; 63 mojo::Binding<PolicyHost> binding_;
62 policy::PolicyService* policy_service_ = nullptr; 64 policy::PolicyService* policy_service_ = nullptr;
63 bool is_managed_ = false; 65 bool is_managed_ = false;
64 66
65 DISALLOW_COPY_AND_ASSIGN(ArcPolicyBridge); 67 DISALLOW_COPY_AND_ASSIGN(ArcPolicyBridge);
66 }; 68 };
67 69
68 } // namespace arc 70 } // namespace arc
69 71
70 #endif // CHROME_BROWSER_CHROMEOS_ARC_POLICY_ARC_POLICY_BRIDGE_H_ 72 #endif // CHROME_BROWSER_CHROMEOS_ARC_POLICY_ARC_POLICY_BRIDGE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/policy/arc_policy_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698