| OLD | NEW |
| 1 // Copyright (c) 2012 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_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONTROLLER_H_ | 6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 | 16 |
| 17 class Extension; | |
| 18 class ExtensionTtsPlatformImpl; | 17 class ExtensionTtsPlatformImpl; |
| 19 class Profile; | 18 class Profile; |
| 20 | 19 |
| 21 namespace base { | 20 namespace base { |
| 22 class ListValue; | 21 class ListValue; |
| 23 class Value; | 22 class Value; |
| 24 } | 23 } |
| 25 | 24 |
| 26 // Events sent back from the TTS engine indicating the progress. | 25 // Events sent back from the TTS engine indicating the progress. |
| 27 enum TtsEventType { | 26 enum TtsEventType { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 std::queue<Utterance*> utterance_queue_; | 250 std::queue<Utterance*> utterance_queue_; |
| 252 | 251 |
| 253 // A pointer to the platform implementation of text-to-speech, for | 252 // A pointer to the platform implementation of text-to-speech, for |
| 254 // dependency injection. | 253 // dependency injection. |
| 255 ExtensionTtsPlatformImpl* platform_impl_; | 254 ExtensionTtsPlatformImpl* platform_impl_; |
| 256 | 255 |
| 257 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsController); | 256 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsController); |
| 258 }; | 257 }; |
| 259 | 258 |
| 260 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONTROLLER_H_ | 259 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONTROLLER_H_ |
| OLD | NEW |