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

Side by Side Diff: components/arc/obb_mounter/arc_obb_mounter_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
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 COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_ 5 #ifndef COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_
6 #define COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_ 6 #define COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_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/obb_mounter.mojom.h" 12 #include "components/arc/common/obb_mounter.mojom.h"
11 #include "components/arc/instance_holder.h" 13 #include "components/arc/instance_holder.h"
12 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
13 15
14 namespace arc { 16 namespace arc {
15 17
16 class ArcBridgeService; 18 class ArcBridgeService;
17 19
18 // This class handles OBB mount/unmount requests from Android. 20 // This class handles OBB mount/unmount requests from Android.
19 class ArcObbMounterBridge 21 class ArcObbMounterBridge
20 : public ArcService, 22 : public ArcService,
21 public InstanceHolder<mojom::ObbMounterInstance>::Observer, 23 public InstanceHolder<mojom::ObbMounterInstance>::Observer,
22 public mojom::ObbMounterHost { 24 public mojom::ObbMounterHost {
23 public: 25 public:
24 explicit ArcObbMounterBridge(ArcBridgeService* bridge_service); 26 explicit ArcObbMounterBridge(ArcBridgeService* bridge_service);
25 ~ArcObbMounterBridge() override; 27 ~ArcObbMounterBridge() override;
26 28
27 // InstanceHolder<mojom::ObbMounterInstance>::Observer overrides: 29 // InstanceHolder<mojom::ObbMounterInstance>::Observer overrides:
28 void OnInstanceReady() override; 30 void OnInstanceReady() override;
29 31
30 // mojom::ObbMounterHost overrides: 32 // mojom::ObbMounterHost overrides:
31 void MountObb(const mojo::String& obb_file, 33 void MountObb(const std::string& obb_file,
32 const mojo::String& target_path, 34 const std::string& target_path,
33 int32_t owner_gid, 35 int32_t owner_gid,
34 const MountObbCallback& callback) override; 36 const MountObbCallback& callback) override;
35 void UnmountObb(const mojo::String& target_path, 37 void UnmountObb(const std::string& target_path,
36 const UnmountObbCallback& callback) override; 38 const UnmountObbCallback& callback) override;
37 39
38 private: 40 private:
39 mojo::Binding<mojom::ObbMounterHost> binding_; 41 mojo::Binding<mojom::ObbMounterHost> binding_;
40 42
41 DISALLOW_COPY_AND_ASSIGN(ArcObbMounterBridge); 43 DISALLOW_COPY_AND_ASSIGN(ArcObbMounterBridge);
42 }; 44 };
43 45
44 } // namespace arc 46 } // namespace arc
45 47
46 #endif // COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_ 48 #endif // COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_
OLDNEW
« no previous file with comments | « components/arc/metrics/arc_metrics_service.cc ('k') | components/arc/obb_mounter/arc_obb_mounter_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698