Chromium Code Reviews| Index: chrome/browser/chromeos/arc/arc_tts_service.h |
| diff --git a/chrome/browser/chromeos/arc/arc_tts_service.h b/chrome/browser/chromeos/arc/arc_tts_service.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3b3b727060d5ed91a3cb40b5b10d060aaf051b68 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/arc/arc_tts_service.h |
| @@ -0,0 +1,42 @@ |
| +// 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 CHROME_BROWSER_CHROMEOS_ARC_ARC_TTS_SERVICE_H_ |
| +#define CHROME_BROWSER_CHROMEOS_ARC_ARC_TTS_SERVICE_H_ |
| + |
| +#include "base/macros.h" |
| +#include "components/arc/arc_service.h" |
| +#include "components/arc/common/tts.mojom.h" |
| +#include "components/arc/instance_holder.h" |
| +#include "mojo/public/cpp/bindings/binding.h" |
| + |
| +namespace arc { |
| + |
| +class ArcBridgeService; |
| + |
| +class ArcTtsService : public ArcService, |
|
hidehiko
2016/08/02 03:56:20
Could you add brief comment about what is the resp
David Tseng
2016/08/02 16:32:18
Done.
|
| + public InstanceHolder<mojom::TtsInstance>::Observer, |
| + public mojom::TtsHost { |
| + public: |
| + explicit ArcTtsService(ArcBridgeService* bridge_service); |
| + ~ArcTtsService() override; |
| + |
| + // InstanceHolder<mojom::TtsInstance>::Observer overrides: |
| + void OnInstanceReady() override; |
| + |
| + // mojom::TtsHost overrides: |
| + void OnTtsEvent(uint32_t id, |
| + mojom::TtsEventType event_type, |
| + uint32_t char_index, |
| + const mojo::String& error_msg) override; |
| + |
| + private: |
| + mojo::Binding<mojom::TtsHost> binding_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ArcTtsService); |
| +}; |
| + |
| +} // namespace arc |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_TTS_SERVICE_H_ |