OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_ACCESSIBILITY_SPEECH_MONITOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPEECH_MONITOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPEECH_MONITOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPEECH_MONITOR_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "chrome/browser/speech/tts_platform.h" | 12 #include "chrome/browser/speech/tts_platform.h" |
12 #include "content/public/test/test_utils.h" | 13 #include "content/public/test/test_utils.h" |
13 | 14 |
14 namespace chromeos { | 15 namespace chromeos { |
15 | 16 |
16 // For testing purpose installs itself as the platform speech synthesis engine, | 17 // For testing purpose installs itself as the platform speech synthesis engine, |
17 // allowing it to intercept all speech calls, and then provides a method to | 18 // allowing it to intercept all speech calls, and then provides a method to |
18 // block until the next utterance is spoken. | 19 // block until the next utterance is spoken. |
19 class SpeechMonitor : public TtsPlatformImpl { | 20 class SpeechMonitor : public TtsPlatformImpl { |
(...skipping 29 matching lines...) Expand all Loading... |
49 private: | 50 private: |
50 scoped_refptr<content::MessageLoopRunner> loop_runner_; | 51 scoped_refptr<content::MessageLoopRunner> loop_runner_; |
51 std::deque<std::string> utterance_queue_; | 52 std::deque<std::string> utterance_queue_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(SpeechMonitor); | 54 DISALLOW_COPY_AND_ASSIGN(SpeechMonitor); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace chromeos | 57 } // namespace chromeos |
57 | 58 |
58 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPEECH_MONITOR_H_ | 59 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPEECH_MONITOR_H_ |
OLD | NEW |