| OLD | NEW |
| (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_TTS_ARC_TTS_SERVICE_H_ |
| 6 #define COMPONENTS_ARC_TTS_ARC_TTS_SERVICE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/arc/arc_service.h" |
| 10 #include "components/arc/common/tts.mojom.h" |
| 11 #include "components/arc/instance_holder.h" |
| 12 #include "mojo/public/cpp/bindings/binding.h" |
| 13 |
| 14 namespace arc { |
| 15 |
| 16 class ArcBridgeService; |
| 17 |
| 18 class ArcTtsService : public ArcService, |
| 19 public InstanceHolder<mojom::TtsInstance>::Observer, |
| 20 public mojom::TtsHost { |
| 21 public: |
| 22 explicit ArcTtsService(ArcBridgeService* bridge_service); |
| 23 ~ArcTtsService() override; |
| 24 |
| 25 // InstanceHolder<mojom::TtsInstance>::Observer overrides: |
| 26 void OnInstanceReady() override; |
| 27 |
| 28 // TtsHost overrides: |
| 29 void OnTtsEvent(uint32_t utterance_id, |
| 30 mojom::TtsEventType event_type) override; |
| 31 |
| 32 private: |
| 33 mojo::Binding<mojom::TtsHost> binding_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(ArcTtsService); |
| 36 }; |
| 37 |
| 38 } // namespace arc |
| 39 |
| 40 #endif // COMPONENTS_ARC_TTS_ARC_TTS_SERVICE_H_ |
| OLD | NEW |