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

Side by Side Diff: components/arc/kiosk/arc_kiosk_bridge.h

Issue 2524673003: arc: Stop/start ARC++ kiosk app when maintenance session started/finished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years 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 COMPONENTS_ARC_KIOSK_ARC_KIOSK_BRIDGE_H_
6 #define COMPONENTS_ARC_KIOSK_ARC_KIOSK_BRIDGE_H_
7
8 #include <map>
9
10 #include "base/macros.h"
11 #include "components/arc/arc_service.h"
12 #include "components/arc/common/kiosk.mojom.h"
13 #include "components/arc/instance_holder.h"
14 #include "mojo/public/cpp/bindings/binding.h"
15
16 namespace arc {
17
18 class ArcBridgeService;
19
20 class ArcKioskBridge : public ArcService,
21 public InstanceHolder<mojom::KioskInstance>::Observer,
22 public mojom::KioskHost {
23 public:
24 explicit ArcKioskBridge(ArcBridgeService* bridge_service);
25 ~ArcKioskBridge() override;
26
27 // InstanceHolder<mojom::KioskInstance>::Observer overrides.
28 void OnInstanceReady() override;
29
30 // mojom::KioskHost overrides.
31 void OnMaintenanceSessionCreated(int32_t session_id) override;
32 void OnMaintenanceSessionFinished(int32_t session_id, bool success) override;
33
34 private:
35 mojo::Binding<mojom::KioskHost> binding_;
36
37 DISALLOW_COPY_AND_ASSIGN(ArcKioskBridge);
38 };
39
40 } // namespace arc
41
42 #endif // COMPONENTS_ARC_KIOSK_ARC_KIOSK_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698