| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_TTS_API_PLATFORM_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_PLATFORM_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_PLATFORM_H_ | 6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_PLATFORM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/extensions/extension_tts_api_controller.h" | 10 #include "chrome/browser/speech/extension_api/tts_extension_api_controller.h" |
| 11 | 11 |
| 12 // Abstract class that defines the native platform TTS interface, | 12 // Abstract class that defines the native platform TTS interface, |
| 13 // subclassed by specific implementations on Win, Mac, etc. | 13 // subclassed by specific implementations on Win, Mac, etc. |
| 14 class ExtensionTtsPlatformImpl { | 14 class ExtensionTtsPlatformImpl { |
| 15 public: | 15 public: |
| 16 static ExtensionTtsPlatformImpl* GetInstance(); | 16 static ExtensionTtsPlatformImpl* GetInstance(); |
| 17 | 17 |
| 18 // Returns true if this platform implementation is supported and available. | 18 // Returns true if this platform implementation is supported and available. |
| 19 virtual bool PlatformImplAvailable() = 0; | 19 virtual bool PlatformImplAvailable() = 0; |
| 20 | 20 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 | 49 |
| 50 protected: | 50 protected: |
| 51 ExtensionTtsPlatformImpl() {} | 51 ExtensionTtsPlatformImpl() {} |
| 52 virtual ~ExtensionTtsPlatformImpl() {} | 52 virtual ~ExtensionTtsPlatformImpl() {} |
| 53 | 53 |
| 54 std::string error_; | 54 std::string error_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsPlatformImpl); | 56 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsPlatformImpl); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_PLATFORM_H_ | 59 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_PLATFORM_H_ |
| OLD | NEW |